| /drivers/iommu/ |
| D | msm_iommu_hw-8xxx.h | 33 #define SET_GLOBAL_REG_N(b, n, r, v) SET_GLOBAL_REG(b, ((r) + (n << 2)), (v)) argument 34 #define GET_GLOBAL_REG_N(b, n, r) GET_GLOBAL_REG(b, ((r) + (n << 2))) argument 37 #define GET_GLOBAL_FIELD(b, r, F) GET_FIELD(((b) + (r)), F##_MASK, F##_SHIFT) argument 38 #define GET_CONTEXT_FIELD(b, c, r, F) \ argument 41 #define SET_GLOBAL_FIELD(b, r, F, v) \ argument 43 #define SET_CONTEXT_FIELD(b, c, r, F, v) \ argument 97 #define SET_M2VCBR_N(b, N, v) SET_GLOBAL_REG_N(M2VCBR_N, N, (b), (v)) argument 98 #define SET_CBACR_N(b, N, v) SET_GLOBAL_REG_N(CBACR_N, N, (b), (v)) argument 99 #define SET_TLBRSW(b, v) SET_GLOBAL_REG(TLBRSW, (b), (v)) argument 100 #define SET_TLBTR0(b, v) SET_GLOBAL_REG(TLBTR0, (b), (v)) argument [all …]
|
| /drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_include/ |
| D | math_support.h | 56 #define IMPLIES(a, b) (!(a) || (b)) argument 62 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) argument 63 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) argument 65 #define ROUND_DIV(a, b) (((b) != 0) ? ((a) + ((b) >> 1)) / (b) : 0) argument 67 #define CEIL_DIV(a, b) (((b) != 0) ? ((a) + (b) - 1) / (b) : 0) argument 68 #define CEIL_MUL(a, b) (CEIL_DIV(a, b) * (b)) argument 69 #define CEIL_MUL2(a, b) (((a) + (b) - 1) & ~((b) - 1)) argument 70 #define CEIL_SHIFT(a, b) (((a) + (1 << (b)) - 1)>>(b)) argument 71 #define CEIL_SHIFT_MUL(a, b) (CEIL_SHIFT(a, b) << (b)) argument 73 #define ROUND_HALF_DOWN_DIV(a, b) (((b) != 0) ? ((a) + (b / 2) - 1) / (b) : 0) argument [all …]
|
| /drivers/gpu/drm/i915/ |
| D | intel_breadcrumbs.c | 30 static unsigned int __intel_breadcrumbs_wakeup(struct intel_breadcrumbs *b) in __intel_breadcrumbs_wakeup() 49 struct intel_breadcrumbs *b = &engine->breadcrumbs; in intel_engine_wakeup() local 80 struct intel_breadcrumbs *b = &engine->breadcrumbs; in intel_breadcrumbs_hangcheck() local 114 struct intel_breadcrumbs *b = &engine->breadcrumbs; in intel_breadcrumbs_fake_irq() local 168 struct intel_breadcrumbs *b = &engine->breadcrumbs; in __intel_engine_disarm_breadcrumbs() local 183 struct intel_breadcrumbs *b = &engine->breadcrumbs; in intel_engine_disarm_breadcrumbs() local 211 static bool use_fake_irq(const struct intel_breadcrumbs *b) in use_fake_irq() 228 static void enable_fake_irq(struct intel_breadcrumbs *b) in enable_fake_irq() 237 static bool __intel_breadcrumbs_enable_irq(struct intel_breadcrumbs *b) in __intel_breadcrumbs_enable_irq() 289 static inline void __intel_breadcrumbs_finish(struct intel_breadcrumbs *b, in __intel_breadcrumbs_finish() [all …]
|
| /drivers/crypto/cavium/cpt/ |
| D | cpt_common.h | 52 #define CPTX_PF_MBOX_INTX(a, b) \ argument 54 #define CPTX_PF_MBOX_INT_W1SX(a, b) \ argument 56 #define CPTX_PF_MBOX_ENA_W1CX(a, b) \ argument 58 #define CPTX_PF_MBOX_ENA_W1SX(a, b) \ argument 64 #define CPTX_PF_GX_EN(a, b) \ argument 86 #define CPTX_PF_EXE_DBG_CNTX(a, b) \ argument 89 #define CPTX_PF_EXE_EPCI_INBX_CNT(a, b) \ argument 91 #define CPTX_PF_EXE_EPCI_OUTBX_CNT(a, b) \ argument 93 #define CPTX_PF_ENGX_UCODE_BASE(a, b) \ argument 95 #define CPTX_PF_QX_CTL(a, b) \ argument [all …]
|
| /drivers/md/bcache/ |
| D | btree.c | 99 #define insert_lock(s, b) ((b)->level <= (s)->lock) argument 119 #define btree(fn, key, b, op, ...) \ argument 160 static inline struct bset *write_block(struct btree *b) in write_block() 165 static void bch_btree_init_next(struct btree *b) in bch_btree_init_next() 192 static uint64_t btree_csum_set(struct btree *b, struct bset *i) in btree_csum_set() 201 void bch_btree_node_read_done(struct btree *b) in bch_btree_node_read_done() 290 static void bch_btree_node_read(struct btree *b) in bch_btree_node_read() 328 static void btree_complete_write(struct btree *b, struct btree_write *w) in btree_complete_write() 345 struct btree *b = container_of(cl, struct btree, io); in btree_node_write_unlock() local 352 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 126 static inline bool can_inc_bucket_gen(struct bucket *b) in can_inc_bucket_gen() 131 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b) in bch_can_invalidate_bucket() 141 void __bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in __bch_invalidate_one_bucket() 154 static void bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in bch_invalidate_one_bucket() 170 #define bucket_prio(b) \ argument 182 struct bucket *b; in invalidate_buckets_lru() local 219 struct bucket *b; in invalidate_buckets_fifo() local 242 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 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() 266 static inline size_t btree_keys_bytes(struct btree_keys *b) in btree_keys_bytes() 271 static inline size_t btree_keys_cachelines(struct btree_keys *b) in btree_keys_cachelines() 277 static inline size_t bset_tree_bytes(struct btree_keys *b) in bset_tree_bytes() 283 static inline size_t bset_prev_bytes(struct btree_keys *b) in bset_prev_bytes() 290 void bch_btree_keys_free(struct btree_keys *b) in bch_btree_keys_free() 314 int bch_btree_keys_alloc(struct btree_keys *b, unsigned page_order, gfp_t gfp) in bch_btree_keys_alloc() [all …]
|
| D | bset.h | 227 static inline struct bset_tree *bset_tree_last(struct btree_keys *b) in bset_tree_last() 232 static inline bool bset_written(struct btree_keys *b, struct bset_tree *t) in bset_written() 237 static inline bool bkey_written(struct btree_keys *b, struct bkey *k) in bkey_written() 242 static inline unsigned bset_byte_offset(struct btree_keys *b, struct bset *i) in bset_byte_offset() 247 static inline unsigned bset_sector_offset(struct btree_keys *b, struct bset *i) in bset_sector_offset() 260 static inline size_t bch_btree_keys_u64s_remaining(struct btree_keys *b) in bch_btree_keys_u64s_remaining() 275 static inline struct bset *bset_next_set(struct btree_keys *b, in bset_next_set() 309 struct btree_keys *b; member 332 static inline struct bkey *bch_bset_search(struct btree_keys *b, in bch_bset_search() 339 #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 172 static bool btree_ptr_bad_expensive(struct btree *b, const struct bkey *k) in btree_ptr_bad_expensive() 206 struct btree *b = container_of(bk, struct btree, keys); in bch_btree_ptr_bad() local 231 struct btree *b = container_of(bk, struct btree, keys); in bch_btree_ptr_insert_fixup() local 322 static bool bch_extent_insert_fixup(struct btree_keys *b, in bch_extent_insert_fixup() 500 struct btree *b = container_of(bk, struct btree, keys); in bch_extent_invalid() local 504 static bool bch_extent_bad_expensive(struct btree *b, const struct bkey *k, in bch_extent_bad_expensive() 536 struct btree *b = container_of(bk, struct btree, keys); in bch_extent_bad() local 581 struct btree *b = container_of(bk, struct btree, keys); in bch_extent_merge() local
|
| D | btree.h | 167 static inline struct btree_write *btree_current_write(struct btree *b) in btree_current_write() 172 static inline struct btree_write *btree_prev_write(struct btree *b) in btree_prev_write() 177 static inline struct bset *btree_bset_first(struct btree *b) in btree_bset_first() 182 static inline struct bset *btree_bset_last(struct btree *b) in btree_bset_last() 187 static inline unsigned bset_block_offset(struct btree *b, struct bset *i) in bset_block_offset() 201 #define for_each_cached_btree(b, c, iter) \ argument 226 static inline void rw_lock(bool w, struct btree *b, int level) in rw_lock() 234 static inline void rw_unlock(bool w, struct btree *b) in rw_unlock()
|
| D | io.c | 19 struct bbio *b = container_of(bio, struct bbio, bio); in bch_bbio_free() local 25 struct bbio *b = mempool_alloc(c->bio_meta, GFP_NOIO); in bch_bbio_alloc() local 35 struct bbio *b = container_of(bio, struct bbio, bio); in __bch_submit_bbio() local 47 struct bbio *b = container_of(bio, struct bbio, bio); in bch_submit_bbio() local 109 struct bbio *b = container_of(bio, struct bbio, bio); in bch_bbio_count_io_errors() local
|
| /drivers/md/ |
| 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() 168 int btracker_queue(struct background_tracker *b, in btracker_queue() 209 int btracker_issue(struct background_tracker *b, struct policy_work **work) in btracker_issue() [all …]
|
| D | dm-bufio.c | 263 static void buffer_record_stack(struct dm_buffer *b) in buffer_record_stack() 279 struct dm_buffer *b; in __find() 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() 454 struct dm_buffer *b = kmalloc(sizeof(struct dm_buffer) + c->aux_size, in alloc_buffer() local 479 static void free_buffer(struct dm_buffer *b) in free_buffer() 492 static void __link_buffer(struct dm_buffer *b, sector_t block, int dirty) in __link_buffer() 507 static void __unlink_buffer(struct dm_buffer *b) in __unlink_buffer() 521 static void __relink_lru(struct dm_buffer *b, int dirty) in __relink_lru() 562 struct dm_buffer *b = context; in dmio_complete() local [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 | 127 struct drbd_bitmap *b = device->bitmap; in __bm_print_lock_info() local 138 struct drbd_bitmap *b = device->bitmap; in drbd_bm_lock() local 165 struct drbd_bitmap *b = device->bitmap; in drbd_bm_unlock() local 225 struct drbd_bitmap *b = device->bitmap; in bm_page_lock_io() local 232 struct drbd_bitmap *b = device->bitmap; in bm_page_unlock_io() local 268 struct drbd_bitmap *b = device->bitmap; in drbd_bm_mark_for_writeout() local 308 static unsigned int bm_word_to_page_idx(struct drbd_bitmap *b, unsigned long long_nr) in bm_word_to_page_idx() 316 static unsigned int bm_bit_to_page_idx(struct drbd_bitmap *b, u64 bitnr) in bm_bit_to_page_idx() 324 static unsigned long *__bm_map_pidx(struct drbd_bitmap *b, unsigned int idx) in __bm_map_pidx() 330 static unsigned long *bm_map_pidx(struct drbd_bitmap *b, unsigned int idx) in bm_map_pidx() [all …]
|
| /drivers/misc/ |
| D | vmw_balloon.c | 323 static bool vmballoon_send_start(struct vmballoon *b, unsigned long req_caps) in vmballoon_send_start() 363 static bool vmballoon_check_status(struct vmballoon *b, unsigned long status) in vmballoon_check_status() 384 static bool vmballoon_send_guest_id(struct vmballoon *b) in vmballoon_send_guest_id() 412 static bool vmballoon_send_get_target(struct vmballoon *b, u32 *new_target) in vmballoon_send_get_target() 452 static int vmballoon_send_lock_page(struct vmballoon *b, unsigned long pfn, in vmballoon_send_lock_page() 473 static int vmballoon_send_batched_lock(struct vmballoon *b, in vmballoon_send_batched_lock() 500 static bool vmballoon_send_unlock_page(struct vmballoon *b, unsigned long pfn, in vmballoon_send_unlock_page() 521 static bool vmballoon_send_batched_unlock(struct vmballoon *b, in vmballoon_send_batched_unlock() 566 static void vmballoon_pop(struct vmballoon *b) in vmballoon_pop() 596 static int vmballoon_lock_page(struct vmballoon *b, unsigned int num_pages, in vmballoon_lock_page() [all …]
|
| /drivers/gpu/drm/nouveau/include/nvif/ |
| D | object.h | 39 #define nvif_rd(a,f,b,c) ({ \ argument 48 #define nvif_wr(a,f,b,c,d) ({ \ argument 55 #define nvif_rd08(a,b) ({ ((u8)nvif_rd((a), ioread8, 1, (b))); }) argument 56 #define nvif_rd16(a,b) ({ ((u16)nvif_rd((a), ioread16_native, 2, (b))); }) argument 57 #define nvif_rd32(a,b) ({ ((u32)nvif_rd((a), ioread32_native, 4, (b))); }) argument 58 #define nvif_wr08(a,b,c) nvif_wr((a), iowrite8, 1, (b), (u8)(c)) argument 59 #define nvif_wr16(a,b,c) nvif_wr((a), iowrite16_native, 2, (b), (u16)(c)) argument 60 #define nvif_wr32(a,b,c) nvif_wr((a), iowrite32_native, 4, (b), (u32)(c)) argument 61 #define nvif_mask(a,b,c,d) ({ \ argument 68 #define nvif_mthd(a,b,c,d) nvif_object_mthd((a), (b), (c), (d)) argument
|
| /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 bitmap_prepare_for_write() 85 struct dm_block *b, in bitmap_check() 120 static void *dm_bitmap_data(struct dm_block *b) in dm_bitmap_data() 127 static unsigned bitmap_word_used(void *addr, unsigned b) in 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() 253 struct dm_block *b; in sm_ll_extend() local 275 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 | 118 enum block_op_type type, dm_block_t b) in brb_push() 180 static int add_bop(struct sm_metadata *smm, enum block_op_type type, dm_block_t b) in add_bop() 299 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_get_count() 340 dm_block_t b, int *result) in sm_metadata_count_is_more_than_one() 391 static int sm_metadata_set_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_set_count() 410 static int sm_metadata_inc_block(struct dm_space_map *sm, dm_block_t b) in sm_metadata_inc_block() 427 static int sm_metadata_dec_block(struct dm_space_map *sm, dm_block_t b) in sm_metadata_dec_block() 444 static int sm_metadata_new_block_(struct dm_space_map *sm, dm_block_t *b) in sm_metadata_new_block_() 473 static int sm_metadata_new_block(struct dm_space_map *sm, dm_block_t *b) in sm_metadata_new_block() 602 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-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()
|
| D | dm-block-manager.c | 301 static void report_recursive_bug(dm_block_t b, int r) in report_recursive_bug() 329 static struct dm_buffer *to_buffer(struct dm_block *b) in to_buffer() 334 dm_block_t dm_block_location(struct dm_block *b) in dm_block_location() 340 void *dm_block_data(struct dm_block *b) in dm_block_data() 456 int dm_bm_read_lock(struct dm_block_manager *bm, dm_block_t b, in dm_bm_read_lock() 490 dm_block_t b, struct dm_block_validator *v, in dm_bm_write_lock() 526 dm_block_t b, struct dm_block_validator *v, in dm_bm_read_try_lock() 559 dm_block_t b, struct dm_block_validator *v, in dm_bm_write_lock_zero() 589 void dm_bm_unlock(struct dm_block *b) in dm_bm_unlock() 613 void dm_bm_prefetch(struct dm_block_manager *bm, dm_block_t b) in dm_bm_prefetch()
|
| /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
|
| /drivers/video/fbdev/matrox/ |
| D | i2c-matroxfb.c | 72 struct i2c_bit_adapter* b = data; in matroxfb_gpio_setsda() local 77 struct i2c_bit_adapter* b = data; in matroxfb_gpio_setscl() local 82 struct i2c_bit_adapter* b = data; in matroxfb_gpio_getsda() local 87 struct i2c_bit_adapter* b = data; in matroxfb_gpio_getscl() local 101 static int i2c_bus_reg(struct i2c_bit_adapter* b, struct matrox_fb_info* minfo, in i2c_bus_reg() 124 static void i2c_bit_bus_del(struct i2c_bit_adapter* b) { in i2c_bit_bus_del()
|
| /drivers/media/platform/s5p-mfc/ |
| D | s5p_mfc_opr.c | 41 struct s5p_mfc_priv_buf *b) in s5p_mfc_alloc_priv_buf() 83 struct s5p_mfc_priv_buf *b) in s5p_mfc_alloc_generic_buf() 102 struct s5p_mfc_priv_buf *b) in s5p_mfc_release_priv_buf() 120 struct s5p_mfc_priv_buf *b) in s5p_mfc_release_generic_buf()
|