/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/base/circbuf/src/ |
D | circbuf.c | 36 ia_css_circbuf_read(ia_css_circbuf_t *cb); 48 static inline void ia_css_circbuf_shift_chunk(ia_css_circbuf_t *cb, 72 ia_css_circbuf_create(ia_css_circbuf_t *cb, in ia_css_circbuf_create() argument 80 cb->desc = desc; in ia_css_circbuf_create() 82 cb->desc->start = 0; in ia_css_circbuf_create() 83 cb->desc->end = 0; in ia_css_circbuf_create() 84 cb->desc->step = 0; in ia_css_circbuf_create() 86 for (i = 0; i < cb->desc->size; i++) in ia_css_circbuf_create() 89 cb->elems = elems; in ia_css_circbuf_create() 96 void ia_css_circbuf_destroy(ia_css_circbuf_t *cb) in ia_css_circbuf_destroy() argument [all …]
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/base/circbuf/interface/ |
D | ia_css_circbuf.h | 49 ia_css_circbuf_t *cb, 59 ia_css_circbuf_t *cb); 72 ia_css_circbuf_t *cb); 86 ia_css_circbuf_t *cb, 147 ia_css_circbuf_t *cb, in ia_css_circbuf_get_pos_at_offset() argument 153 OP___assert(cb); in ia_css_circbuf_get_pos_at_offset() 154 OP___assert(cb->desc); in ia_css_circbuf_get_pos_at_offset() 155 OP___assert(cb->desc->size > 0); in ia_css_circbuf_get_pos_at_offset() 159 offset += cb->desc->size; in ia_css_circbuf_get_pos_at_offset() 163 dest = OP_std_modadd(base, offset, cb->desc->size); in ia_css_circbuf_get_pos_at_offset() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
D | command_buffer.c | 16 static int cb_map_mem(struct hl_ctx *ctx, struct hl_cb *cb) in cb_map_mem() argument 39 INIT_LIST_HEAD(&cb->va_block_list); in cb_map_mem() 41 for (bus_addr = cb->bus_address; in cb_map_mem() 42 bus_addr < cb->bus_address + cb->size; in cb_map_mem() 63 list_add_tail(&va_block->node, &cb->va_block_list); in cb_map_mem() 68 bus_addr = cb->bus_address; in cb_map_mem() 70 list_for_each_entry(va_block, &cb->va_block_list, node) { in cb_map_mem() 73 &cb->va_block_list)); in cb_map_mem() 88 cb->is_mmu_mapped = true; in cb_map_mem() 93 list_for_each_entry(va_block, &cb->va_block_list, node) { in cb_map_mem() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | myrb.c | 90 static bool myrb_create_mempools(struct pci_dev *pdev, struct myrb_hba *cb) in myrb_create_mempools() argument 95 elem_size = cb->host->sg_tablesize * elem_align; in myrb_create_mempools() 96 cb->sg_pool = dma_pool_create("myrb_sg", &pdev->dev, in myrb_create_mempools() 98 if (cb->sg_pool == NULL) { in myrb_create_mempools() 99 shost_printk(KERN_ERR, cb->host, in myrb_create_mempools() 104 cb->dcdb_pool = dma_pool_create("myrb_dcdb", &pdev->dev, in myrb_create_mempools() 107 if (!cb->dcdb_pool) { in myrb_create_mempools() 108 dma_pool_destroy(cb->sg_pool); in myrb_create_mempools() 109 cb->sg_pool = NULL; in myrb_create_mempools() 110 shost_printk(KERN_ERR, cb->host, in myrb_create_mempools() [all …]
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | lm3533-ctrlbank.c | 28 static inline u8 lm3533_ctrlbank_get_reg(struct lm3533_ctrlbank *cb, u8 base) in lm3533_ctrlbank_get_reg() argument 30 return base + cb->id; in lm3533_ctrlbank_get_reg() 33 int lm3533_ctrlbank_enable(struct lm3533_ctrlbank *cb) in lm3533_ctrlbank_enable() argument 38 dev_dbg(cb->dev, "%s - %d\n", __func__, cb->id); in lm3533_ctrlbank_enable() 40 mask = 1 << cb->id; in lm3533_ctrlbank_enable() 41 ret = lm3533_update(cb->lm3533, LM3533_REG_CTRLBANK_ENABLE, in lm3533_ctrlbank_enable() 44 dev_err(cb->dev, "failed to enable ctrlbank %d\n", cb->id); in lm3533_ctrlbank_enable() 50 int lm3533_ctrlbank_disable(struct lm3533_ctrlbank *cb) in lm3533_ctrlbank_disable() argument 55 dev_dbg(cb->dev, "%s - %d\n", __func__, cb->id); in lm3533_ctrlbank_disable() 57 mask = 1 << cb->id; in lm3533_ctrlbank_disable() [all …]
|
/kernel/linux/linux-5.10/block/ |
D | blk-stat.c | 54 struct blk_stat_callback *cb; in blk_stat_add() local 65 list_for_each_entry_rcu(cb, &q->stats->callbacks, list) { in blk_stat_add() 66 if (!blk_stat_is_active(cb)) in blk_stat_add() 69 bucket = cb->bucket_fn(rq); in blk_stat_add() 73 stat = &per_cpu_ptr(cb->cpu_stat, cpu)[bucket]; in blk_stat_add() 82 struct blk_stat_callback *cb = from_timer(cb, t, timer); in blk_stat_timer_fn() local 86 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_timer_fn() 87 blk_rq_stat_init(&cb->stat[bucket]); in blk_stat_timer_fn() 92 cpu_stat = per_cpu_ptr(cb->cpu_stat, cpu); in blk_stat_timer_fn() 93 for (bucket = 0; bucket < cb->buckets; bucket++) { in blk_stat_timer_fn() [all …]
|
D | blk-stat.h | 99 struct blk_stat_callback *cb); 111 struct blk_stat_callback *cb); 122 void blk_stat_free_callback(struct blk_stat_callback *cb); 129 static inline bool blk_stat_is_active(struct blk_stat_callback *cb) in blk_stat_is_active() argument 131 return timer_pending(&cb->timer); in blk_stat_is_active() 142 static inline void blk_stat_activate_nsecs(struct blk_stat_callback *cb, in blk_stat_activate_nsecs() argument 145 mod_timer(&cb->timer, jiffies + nsecs_to_jiffies(nsecs)); in blk_stat_activate_nsecs() 148 static inline void blk_stat_deactivate(struct blk_stat_callback *cb) in blk_stat_deactivate() argument 150 del_timer_sync(&cb->timer); in blk_stat_deactivate() 161 static inline void blk_stat_activate_msecs(struct blk_stat_callback *cb, in blk_stat_activate_msecs() argument [all …]
|
/kernel/linux/linux-5.10/drivers/irqchip/ |
D | irq-crossbar.c | 43 static struct crossbar_device *cb; variable 47 writel(cb_no, cb->crossbar_base + cb->register_offsets[irq_no]); in crossbar_writel() 52 writew(cb_no, cb->crossbar_base + cb->register_offsets[irq_no]); in crossbar_writew() 57 writeb(cb_no, cb->crossbar_base + cb->register_offsets[irq_no]); in crossbar_writeb() 84 raw_spin_lock(&cb->lock); in allocate_gic_irq() 85 for (i = cb->int_max - 1; i >= 0; i--) { in allocate_gic_irq() 86 if (cb->irq_map[i] == IRQ_FREE) { in allocate_gic_irq() 87 cb->irq_map[i] = hwirq; in allocate_gic_irq() 91 raw_spin_unlock(&cb->lock); in allocate_gic_irq() 104 cb->irq_map[i] = IRQ_FREE; in allocate_gic_irq() [all …]
|
/kernel/linux/linux-5.10/drivers/net/mdio/ |
D | mdio-mux.c | 40 struct mdio_mux_child_bus *cb = bus->priv; in mdio_mux_read() local 41 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_read() 45 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_read() 49 pb->current_child = cb->bus_number; in mdio_mux_read() 64 struct mdio_mux_child_bus *cb = bus->priv; in mdio_mux_write() local 65 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_write() 70 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_write() 74 pb->current_child = cb->bus_number; in mdio_mux_write() 87 struct mdio_mux_child_bus *cb = pb->children; in mdio_mux_uninit_children() local 89 while (cb) { in mdio_mux_uninit_children() [all …]
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | nfs4callback.c | 344 const struct nfsd4_callback *cb, in encode_cb_sequence4args() argument 347 struct nfsd4_session *session = cb->cb_clp->cl_cb_session; in encode_cb_sequence4args() 388 struct nfsd4_callback *cb) in decode_cb_sequence4resok() argument 390 struct nfsd4_session *session = cb->cb_clp->cl_cb_session; in decode_cb_sequence4resok() 426 cb->cb_seq_status = status; in decode_cb_sequence4resok() 434 struct nfsd4_callback *cb) in decode_cb_sequence4res() argument 438 if (cb->cb_clp->cl_minorversion == 0) in decode_cb_sequence4res() 441 status = decode_cb_op_status(xdr, OP_CB_SEQUENCE, &cb->cb_seq_status); in decode_cb_sequence4res() 442 if (unlikely(status || cb->cb_seq_status)) in decode_cb_sequence4res() 445 return decode_cb_sequence4resok(xdr, cb); in decode_cb_sequence4res() [all …]
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | runtime_instr.c | 53 static void init_runtime_instr_cb(struct runtime_instr_cb *cb) in init_runtime_instr_cb() argument 55 cb->rla = 0xfff; in init_runtime_instr_cb() 56 cb->s = 1; in init_runtime_instr_cb() 57 cb->k = 1; in init_runtime_instr_cb() 58 cb->ps = 1; in init_runtime_instr_cb() 59 cb->pc = 1; in init_runtime_instr_cb() 60 cb->key = PAGE_DEFAULT_KEY >> 4; in init_runtime_instr_cb() 61 cb->v = 1; in init_runtime_instr_cb() 72 struct runtime_instr_cb *cb; in SYSCALL_DEFINE2() local 86 cb = kzalloc(sizeof(*cb), GFP_KERNEL); in SYSCALL_DEFINE2() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/sgi-gru/ |
D | gru_instructions.h | 22 extern int gru_check_status_proc(void *cb); 23 extern int gru_wait_proc(void *cb); 24 extern void gru_wait_abort_proc(void *cb); 79 unsigned long cb; member 359 static inline void gru_vload_phys(void *cb, unsigned long gpa, in gru_vload_phys() argument 362 struct gru_instruction *ins = (struct gru_instruction *)cb; in gru_vload_phys() 371 static inline void gru_vstore_phys(void *cb, unsigned long gpa, in gru_vstore_phys() argument 374 struct gru_instruction *ins = (struct gru_instruction *)cb; in gru_vstore_phys() 383 static inline void gru_vload(void *cb, unsigned long mem_addr, in gru_vload() argument 387 struct gru_instruction *ins = (struct gru_instruction *)cb; in gru_vload() [all …]
|
D | grukservices.c | 255 static int gru_get_cpu_resources(int dsr_bytes, void **cb, void **dsr) in gru_get_cpu_resources() argument 264 *cb = bs->kernel_cb + lcpu * GRU_HANDLE_STRIDE; in gru_get_cpu_resources() 272 static void gru_free_cpu_resources(void *cb, void *dsr) in gru_free_cpu_resources() argument 359 void gru_lock_async_resource(unsigned long han, void **cb, void **dsr) in gru_lock_async_resource() argument 367 if (cb) in gru_lock_async_resource() 368 *cb = bs->kernel_cb + ncpus * GRU_HANDLE_STRIDE; in gru_lock_async_resource() 387 int gru_get_cb_exception_detail(void *cb, in gru_get_cb_exception_detail() argument 406 off = cb - kgts->ts_gru->gs_gru_base_vaddr; in gru_get_cb_exception_detail() 412 cbrnum = thread_cbr_number(kgts, get_cb_number(cb)); in gru_get_cb_exception_detail() 413 cbe = get_cbe(GRUBASE(cb), cbrnum); in gru_get_cb_exception_detail() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/mei/ |
D | client.c | 317 void mei_io_cb_free(struct mei_cl_cb *cb) in mei_io_cb_free() argument 319 if (cb == NULL) in mei_io_cb_free() 322 list_del(&cb->list); in mei_io_cb_free() 323 kfree(cb->buf.data); in mei_io_cb_free() 324 kfree(cb); in mei_io_cb_free() 335 static inline void mei_tx_cb_enqueue(struct mei_cl_cb *cb, in mei_tx_cb_enqueue() argument 338 list_add_tail(&cb->list, head); in mei_tx_cb_enqueue() 339 cb->cl->tx_cb_queued++; in mei_tx_cb_enqueue() 349 static inline void mei_tx_cb_dequeue(struct mei_cl_cb *cb) in mei_tx_cb_dequeue() argument 351 if (!WARN_ON(cb->cl->tx_cb_queued == 0)) in mei_tx_cb_dequeue() [all …]
|
D | interrupt.c | 31 struct mei_cl_cb *cb, *next; in mei_irq_compl_handler() local 34 list_for_each_entry_safe(cb, next, cmpl_list, list) { in mei_irq_compl_handler() 35 cl = cb->cl; in mei_irq_compl_handler() 36 list_del_init(&cb->list); in mei_irq_compl_handler() 39 mei_cl_complete(cl, cb); in mei_irq_compl_handler() 99 struct mei_cl_cb *cb; in mei_cl_irq_read_msg() local 112 cb = list_first_entry_or_null(&cl->rd_pending, struct mei_cl_cb, list); in mei_cl_irq_read_msg() 113 if (!cb) { in mei_cl_irq_read_msg() 118 cb = mei_cl_alloc_cb(cl, mei_cl_mtu(cl), MEI_FOP_READ, cl->fp); in mei_cl_irq_read_msg() 119 if (!cb) in mei_cl_irq_read_msg() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/ |
D | ccm_mbox.c | 64 struct nfp_ccm_mbox_cmsg_cb *cb = (void *)skb->cb; in nfp_ccm_mbox_msg_init() local 66 cb->state = NFP_NET_MBOX_CMSG_STATE_QUEUED; in nfp_ccm_mbox_msg_init() 67 cb->err = 0; in nfp_ccm_mbox_msg_init() 68 cb->max_len = max_len; in nfp_ccm_mbox_msg_init() 69 cb->exp_reply = exp_reply; in nfp_ccm_mbox_msg_init() 70 cb->posted = false; in nfp_ccm_mbox_msg_init() 75 struct nfp_ccm_mbox_cmsg_cb *cb = (void *)skb->cb; in nfp_ccm_mbox_maxlen() local 77 return cb->max_len; in nfp_ccm_mbox_maxlen() 82 struct nfp_ccm_mbox_cmsg_cb *cb = (void *)skb->cb; in nfp_ccm_mbox_done() local 84 return cb->state == NFP_NET_MBOX_CMSG_STATE_DONE; in nfp_ccm_mbox_done() [all …]
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
D | st-dma-fence.c | 37 struct dma_fence_cb cb; member 41 static void mock_wakeup(struct dma_fence *f, struct dma_fence_cb *cb) in mock_wakeup() argument 43 wake_up_process(container_of(cb, struct wait_cb, cb)->task); in mock_wakeup() 49 struct wait_cb cb = { .task = current }; in mock_wait() local 51 if (dma_fence_add_callback(f, &cb.cb, mock_wakeup)) in mock_wait() 67 if (!dma_fence_remove_callback(f, &cb.cb)) in mock_wait() 147 struct dma_fence_cb cb; member 151 static void simple_callback(struct dma_fence *f, struct dma_fence_cb *cb) in simple_callback() argument 153 smp_store_mb(container_of(cb, struct simple_cb, cb)->seen, true); in simple_callback() 158 struct simple_cb cb = {}; in test_add_callback() local [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/verifier/ |
D | ctx_skb.c | 396 offsetof(struct __sk_buff, cb[0])), 398 offsetof(struct __sk_buff, cb[0]) + 1), 400 offsetof(struct __sk_buff, cb[0]) + 2), 402 offsetof(struct __sk_buff, cb[0]) + 3), 404 offsetof(struct __sk_buff, cb[1])), 406 offsetof(struct __sk_buff, cb[1]) + 1), 408 offsetof(struct __sk_buff, cb[1]) + 2), 410 offsetof(struct __sk_buff, cb[1]) + 3), 412 offsetof(struct __sk_buff, cb[2])), 414 offsetof(struct __sk_buff, cb[2]) + 1), [all …]
|
/kernel/linux/linux-5.10/net/decnet/ |
D | dn_nsp_in.c | 77 struct dn_skb_cb *cb = DN_SKB_CB(skb); in dn_log_martian() local 80 le16_to_cpu(cb->src), in dn_log_martian() 81 le16_to_cpu(cb->dst), in dn_log_martian() 82 le16_to_cpu(cb->src_port), in dn_log_martian() 83 le16_to_cpu(cb->dst_port)); in dn_log_martian() 219 struct dn_skb_cb *cb = DN_SKB_CB(skb); in dn_find_listener() local 237 cb->src_port = msg->srcaddr; in dn_find_listener() 238 cb->dst_port = msg->dstaddr; in dn_find_listener() 239 cb->services = msg->services; in dn_find_listener() 240 cb->info = msg->info; in dn_find_listener() [all …]
|
/kernel/linux/linux-5.10/drivers/dma/ |
D | dmaengine.h | 115 struct dmaengine_desc_callback *cb) in dmaengine_desc_get_callback() argument 117 cb->callback = tx->callback; in dmaengine_desc_get_callback() 118 cb->callback_result = tx->callback_result; in dmaengine_desc_get_callback() 119 cb->callback_param = tx->callback_param; in dmaengine_desc_get_callback() 132 dmaengine_desc_callback_invoke(struct dmaengine_desc_callback *cb, in dmaengine_desc_callback_invoke() argument 140 if (cb->callback_result) { in dmaengine_desc_callback_invoke() 143 cb->callback_result(cb->callback_param, result); in dmaengine_desc_callback_invoke() 144 } else if (cb->callback) { in dmaengine_desc_callback_invoke() 145 cb->callback(cb->callback_param); in dmaengine_desc_callback_invoke() 163 struct dmaengine_desc_callback cb; in dmaengine_desc_get_callback_invoke() local [all …]
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | compression.c | 97 struct compressed_bio *cb) in compression_decompress_bio() argument 100 case BTRFS_COMPRESS_ZLIB: return zlib_decompress_bio(ws, cb); in compression_decompress_bio() 101 case BTRFS_COMPRESS_LZO: return lzo_decompress_bio(ws, cb); in compression_decompress_bio() 102 case BTRFS_COMPRESS_ZSTD: return zstd_decompress_bio(ws, cb); in compression_decompress_bio() 134 static int btrfs_decompress_bio(struct compressed_bio *cb); 155 struct compressed_bio *cb = bio->bi_private; in check_compressed_csum() local 156 u8 *cb_sum = cb->sums; in check_compressed_csum() 163 for (i = 0; i < cb->nr_pages; i++) { in check_compressed_csum() 164 page = cb->compressed_pages[i]; in check_compressed_csum() 172 csum, cb_sum, cb->mirror_num); in check_compressed_csum() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
D | util.h | 55 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb; in MWIFIEX_SKB_RXCB() local 57 BUILD_BUG_ON(sizeof(struct mwifiex_cb) > sizeof(skb->cb)); in MWIFIEX_SKB_RXCB() 58 return &cb->rx_info; in MWIFIEX_SKB_RXCB() 63 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb; in MWIFIEX_SKB_TXCB() local 65 return &cb->tx_info; in MWIFIEX_SKB_TXCB() 71 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb; in mwifiex_store_mapping() local 73 memcpy(&cb->dma_mapping, mapping, sizeof(*mapping)); in mwifiex_store_mapping() 79 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb; in mwifiex_get_mapping() local 81 memcpy(mapping, &cb->dma_mapping, sizeof(*mapping)); in mwifiex_get_mapping()
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
D | scattered.c | 55 const struct cpuid_bit *cb; in init_scattered_cpuid_features() local 57 for (cb = cpuid_bits; cb->feature; cb++) { in init_scattered_cpuid_features() 60 max_level = cpuid_eax(cb->level & 0xffff0000); in init_scattered_cpuid_features() 61 if (max_level < cb->level || in init_scattered_cpuid_features() 62 max_level > (cb->level | 0xffff)) in init_scattered_cpuid_features() 65 cpuid_count(cb->level, cb->sub_leaf, ®s[CPUID_EAX], in init_scattered_cpuid_features() 69 if (regs[cb->reg] & (1 << cb->bit)) in init_scattered_cpuid_features() 70 set_cpu_cap(c, cb->feature); in init_scattered_cpuid_features()
|
/kernel/linux/linux-5.10/drivers/s390/net/ |
D | smsgiucv.c | 55 struct smsg_callback *cb; in smsg_message_pending() local 78 list_for_each_entry(cb, &smsg_list, list) in smsg_message_pending() 79 if (strncmp(buffer + 8, cb->prefix, cb->len) == 0) { in smsg_message_pending() 80 cb->callback(sender, buffer + 8); in smsg_message_pending() 91 struct smsg_callback *cb; in smsg_register_callback() local 93 cb = kmalloc(sizeof(struct smsg_callback), GFP_KERNEL); in smsg_register_callback() 94 if (!cb) in smsg_register_callback() 96 cb->prefix = prefix; in smsg_register_callback() 97 cb->len = strlen(prefix); in smsg_register_callback() 98 cb->callback = callback; in smsg_register_callback() [all …]
|
/kernel/linux/linux-5.10/net/sctp/ |
D | diag.c | 220 struct netlink_callback *cb; member 297 struct netlink_callback *cb = commp->cb; in sctp_sock_dump() local 306 if (cb->args[4] < cb->args[1]) in sctp_sock_dump() 316 if (!cb->args[3] && in sctp_sock_dump() 318 sk_user_ns(NETLINK_CB(cb->skb).sk), in sctp_sock_dump() 319 NETLINK_CB(cb->skb).portid, in sctp_sock_dump() 320 cb->nlh->nlmsg_seq, in sctp_sock_dump() 321 NLM_F_MULTI, cb->nlh, in sctp_sock_dump() 326 cb->args[3] = 1; in sctp_sock_dump() 329 sk_user_ns(NETLINK_CB(cb->skb).sk), in sctp_sock_dump() [all …]
|