/Linux-v4.19/block/ |
D | blk-stat.c | 53 struct blk_stat_callback *cb; in blk_stat_add() local 63 list_for_each_entry_rcu(cb, &q->stats->callbacks, list) { in blk_stat_add() 64 if (!blk_stat_is_active(cb)) in blk_stat_add() 67 bucket = cb->bucket_fn(rq); in blk_stat_add() 71 stat = &get_cpu_ptr(cb->cpu_stat)[bucket]; in blk_stat_add() 73 put_cpu_ptr(cb->cpu_stat); in blk_stat_add() 80 struct blk_stat_callback *cb = from_timer(cb, t, timer); in blk_stat_timer_fn() local 84 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_timer_fn() 85 blk_rq_stat_init(&cb->stat[bucket]); in blk_stat_timer_fn() 90 cpu_stat = per_cpu_ptr(cb->cpu_stat, cpu); 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() 156 static inline void blk_stat_activate_msecs(struct blk_stat_callback *cb, in blk_stat_activate_msecs() argument 159 mod_timer(&cb->timer, jiffies + msecs_to_jiffies(msecs)); in blk_stat_activate_msecs()
|
/Linux-v4.19/drivers/irqchip/ |
D | irq-crossbar.c | 47 static struct crossbar_device *cb; variable 51 writel(cb_no, cb->crossbar_base + cb->register_offsets[irq_no]); in crossbar_writel() 56 writew(cb_no, cb->crossbar_base + cb->register_offsets[irq_no]); in crossbar_writew() 61 writeb(cb_no, cb->crossbar_base + cb->register_offsets[irq_no]); in crossbar_writeb() 88 raw_spin_lock(&cb->lock); in allocate_gic_irq() 89 for (i = cb->int_max - 1; i >= 0; i--) { in allocate_gic_irq() 90 if (cb->irq_map[i] == IRQ_FREE) { in allocate_gic_irq() 91 cb->irq_map[i] = hwirq; in allocate_gic_irq() 95 raw_spin_unlock(&cb->lock); in allocate_gic_irq() 108 cb->irq_map[i] = IRQ_FREE; in allocate_gic_irq() [all …]
|
/Linux-v4.19/drivers/mfd/ |
D | lm3533-ctrlbank.c | 33 static inline u8 lm3533_ctrlbank_get_reg(struct lm3533_ctrlbank *cb, u8 base) in lm3533_ctrlbank_get_reg() argument 35 return base + cb->id; in lm3533_ctrlbank_get_reg() 38 int lm3533_ctrlbank_enable(struct lm3533_ctrlbank *cb) in lm3533_ctrlbank_enable() argument 43 dev_dbg(cb->dev, "%s - %d\n", __func__, cb->id); in lm3533_ctrlbank_enable() 45 mask = 1 << cb->id; in lm3533_ctrlbank_enable() 46 ret = lm3533_update(cb->lm3533, LM3533_REG_CTRLBANK_ENABLE, in lm3533_ctrlbank_enable() 49 dev_err(cb->dev, "failed to enable ctrlbank %d\n", cb->id); in lm3533_ctrlbank_enable() 55 int lm3533_ctrlbank_disable(struct lm3533_ctrlbank *cb) in lm3533_ctrlbank_disable() argument 60 dev_dbg(cb->dev, "%s - %d\n", __func__, cb->id); in lm3533_ctrlbank_disable() 62 mask = 1 << cb->id; in lm3533_ctrlbank_disable() [all …]
|
/Linux-v4.19/drivers/net/phy/ |
D | mdio-mux.c | 43 struct mdio_mux_child_bus *cb = bus->priv; in mdio_mux_read() local 44 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_read() 48 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_read() 52 pb->current_child = cb->bus_number; in mdio_mux_read() 67 struct mdio_mux_child_bus *cb = bus->priv; in mdio_mux_write() local 68 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_write() 73 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_write() 77 pb->current_child = cb->bus_number; in mdio_mux_write() 100 struct mdio_mux_child_bus *cb; in mdio_mux_init() local 147 cb = devm_kzalloc(dev, sizeof(*cb), GFP_KERNEL); in mdio_mux_init() [all …]
|
/Linux-v4.19/arch/x86/kernel/cpu/ |
D | scattered.c | 41 const struct cpuid_bit *cb; in init_scattered_cpuid_features() local 43 for (cb = cpuid_bits; cb->feature; cb++) { in init_scattered_cpuid_features() 46 max_level = cpuid_eax(cb->level & 0xffff0000); in init_scattered_cpuid_features() 47 if (max_level < cb->level || in init_scattered_cpuid_features() 48 max_level > (cb->level | 0xffff)) in init_scattered_cpuid_features() 51 cpuid_count(cb->level, cb->sub_leaf, ®s[CPUID_EAX], in init_scattered_cpuid_features() 55 if (regs[cb->reg] & (1 << cb->bit)) in init_scattered_cpuid_features() 56 set_cpu_cap(c, cb->feature); in init_scattered_cpuid_features() 63 const struct cpuid_bit *cb; in get_scattered_cpuid_leaf() local 66 for (cb = cpuid_bits; cb->feature; cb++) { in get_scattered_cpuid_leaf() [all …]
|
/Linux-v4.19/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; 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 …]
|
/Linux-v4.19/drivers/misc/mei/ |
D | interrupt.c | 42 struct mei_cl_cb *cb, *next; in mei_irq_compl_handler() local 45 list_for_each_entry_safe(cb, next, cmpl_list, list) { in mei_irq_compl_handler() 46 cl = cb->cl; in mei_irq_compl_handler() 47 list_del_init(&cb->list); in mei_irq_compl_handler() 50 mei_cl_complete(cl, cb); in mei_irq_compl_handler() 101 struct mei_cl_cb *cb; in mei_cl_irq_read_msg() local 104 cb = list_first_entry_or_null(&cl->rd_pending, struct mei_cl_cb, list); in mei_cl_irq_read_msg() 105 if (!cb) { in mei_cl_irq_read_msg() 110 cb = mei_cl_alloc_cb(cl, mei_cl_mtu(cl), MEI_FOP_READ, cl->fp); in mei_cl_irq_read_msg() 111 if (!cb) in mei_cl_irq_read_msg() [all …]
|
D | client.c | 342 void mei_io_cb_free(struct mei_cl_cb *cb) in mei_io_cb_free() argument 344 if (cb == NULL) in mei_io_cb_free() 347 list_del(&cb->list); in mei_io_cb_free() 348 kfree(cb->buf.data); in mei_io_cb_free() 349 kfree(cb); in mei_io_cb_free() 360 static inline void mei_tx_cb_enqueue(struct mei_cl_cb *cb, in mei_tx_cb_enqueue() argument 363 list_add_tail(&cb->list, head); in mei_tx_cb_enqueue() 364 cb->cl->tx_cb_queued++; in mei_tx_cb_enqueue() 374 static inline void mei_tx_cb_dequeue(struct mei_cl_cb *cb) in mei_tx_cb_dequeue() argument 376 if (!WARN_ON(cb->cl->tx_cb_queued == 0)) in mei_tx_cb_dequeue() [all …]
|
/Linux-v4.19/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 | 267 static int gru_get_cpu_resources(int dsr_bytes, void **cb, void **dsr) in gru_get_cpu_resources() argument 276 *cb = bs->kernel_cb + lcpu * GRU_HANDLE_STRIDE; in gru_get_cpu_resources() 284 static void gru_free_cpu_resources(void *cb, void *dsr) in gru_free_cpu_resources() argument 371 void gru_lock_async_resource(unsigned long han, void **cb, void **dsr) in gru_lock_async_resource() argument 379 if (cb) in gru_lock_async_resource() 380 *cb = bs->kernel_cb + ncpus * GRU_HANDLE_STRIDE; in gru_lock_async_resource() 399 int gru_get_cb_exception_detail(void *cb, in gru_get_cb_exception_detail() argument 418 off = cb - kgts->ts_gru->gs_gru_base_vaddr; in gru_get_cb_exception_detail() 424 cbrnum = thread_cbr_number(kgts, get_cb_number(cb)); in gru_get_cb_exception_detail() 425 cbe = get_cbe(GRUBASE(cb), cbrnum); in gru_get_cb_exception_detail() [all …]
|
/Linux-v4.19/fs/nfsd/ |
D | nfs4callback.c | 353 const struct nfsd4_callback *cb, in encode_cb_sequence4args() argument 356 struct nfsd4_session *session = cb->cb_clp->cl_cb_session; in encode_cb_sequence4args() 397 struct nfsd4_callback *cb) in decode_cb_sequence4resok() argument 399 struct nfsd4_session *session = cb->cb_clp->cl_cb_session; in decode_cb_sequence4resok() 435 cb->cb_seq_status = status; in decode_cb_sequence4resok() 444 struct nfsd4_callback *cb) in decode_cb_sequence4res() argument 448 if (cb->cb_clp->cl_minorversion == 0) in decode_cb_sequence4res() 451 status = decode_cb_op_status(xdr, OP_CB_SEQUENCE, &cb->cb_seq_status); in decode_cb_sequence4res() 452 if (unlikely(status || cb->cb_seq_status)) in decode_cb_sequence4res() 455 return decode_cb_sequence4resok(xdr, cb); in decode_cb_sequence4res() [all …]
|
/Linux-v4.19/fs/btrfs/ |
D | compression.c | 45 static int btrfs_decompress_bio(struct compressed_bio *cb); 57 struct compressed_bio *cb, in check_compressed_csum() argument 65 u32 *cb_sum = &cb->sums; in check_compressed_csum() 70 for (i = 0; i < cb->nr_pages; i++) { in check_compressed_csum() 71 page = cb->compressed_pages[i]; in check_compressed_csum() 81 *cb_sum, cb->mirror_num); in check_compressed_csum() 105 struct compressed_bio *cb = bio->bi_private; in end_compressed_bio_read() local 113 cb->errors = 1; in end_compressed_bio_read() 118 if (!refcount_dec_and_test(&cb->pending_bios)) in end_compressed_bio_read() 125 ASSERT(btrfs_io_bio(cb->orig_bio)); in end_compressed_bio_read() [all …]
|
/Linux-v4.19/net/decnet/ |
D | dn_nsp_in.c | 85 struct dn_skb_cb *cb = DN_SKB_CB(skb); in dn_log_martian() local 88 le16_to_cpu(cb->src), in dn_log_martian() 89 le16_to_cpu(cb->dst), in dn_log_martian() 90 le16_to_cpu(cb->src_port), in dn_log_martian() 91 le16_to_cpu(cb->dst_port)); in dn_log_martian() 227 struct dn_skb_cb *cb = DN_SKB_CB(skb); in dn_find_listener() local 245 cb->src_port = msg->srcaddr; in dn_find_listener() 246 cb->dst_port = msg->dstaddr; in dn_find_listener() 247 cb->services = msg->services; in dn_find_listener() 248 cb->info = msg->info; in dn_find_listener() [all …]
|
/Linux-v4.19/drivers/dma/ |
D | dmaengine.h | 107 struct dmaengine_desc_callback *cb) in dmaengine_desc_get_callback() argument 109 cb->callback = tx->callback; in dmaengine_desc_get_callback() 110 cb->callback_result = tx->callback_result; in dmaengine_desc_get_callback() 111 cb->callback_param = tx->callback_param; in dmaengine_desc_get_callback() 124 dmaengine_desc_callback_invoke(struct dmaengine_desc_callback *cb, in dmaengine_desc_callback_invoke() argument 132 if (cb->callback_result) { in dmaengine_desc_callback_invoke() 135 cb->callback_result(cb->callback_param, result); in dmaengine_desc_callback_invoke() 136 } else if (cb->callback) { in dmaengine_desc_callback_invoke() 137 cb->callback(cb->callback_param); in dmaengine_desc_callback_invoke() 155 struct dmaengine_desc_callback cb; in dmaengine_desc_get_callback_invoke() local [all …]
|
/Linux-v4.19/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()
|
/Linux-v4.19/net/sctp/ |
D | diag.c | 238 struct netlink_callback *cb; member 319 struct netlink_callback *cb = commp->cb; in sctp_sock_dump() local 326 if (cb->args[4] < cb->args[1]) in sctp_sock_dump() 336 if (!cb->args[3] && in sctp_sock_dump() 338 sk_user_ns(NETLINK_CB(cb->skb).sk), in sctp_sock_dump() 339 NETLINK_CB(cb->skb).portid, in sctp_sock_dump() 340 cb->nlh->nlmsg_seq, in sctp_sock_dump() 341 NLM_F_MULTI, cb->nlh, in sctp_sock_dump() 346 cb->args[3] = 1; in sctp_sock_dump() 349 sk_user_ns(NETLINK_CB(cb->skb).sk), in sctp_sock_dump() [all …]
|
/Linux-v4.19/drivers/s390/net/ |
D | smsgiucv.c | 58 struct smsg_callback *cb; in smsg_message_pending() local 81 list_for_each_entry(cb, &smsg_list, list) in smsg_message_pending() 82 if (strncmp(buffer + 8, cb->prefix, cb->len) == 0) { in smsg_message_pending() 83 cb->callback(sender, buffer + 8); in smsg_message_pending() 94 struct smsg_callback *cb; in smsg_register_callback() local 96 cb = kmalloc(sizeof(struct smsg_callback), GFP_KERNEL); in smsg_register_callback() 97 if (!cb) in smsg_register_callback() 99 cb->prefix = prefix; in smsg_register_callback() 100 cb->len = strlen(prefix); in smsg_register_callback() 101 cb->callback = callback; in smsg_register_callback() [all …]
|
/Linux-v4.19/net/netlink/ |
D | diag.c | 88 static int __netlink_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, in __netlink_diag_dump() argument 91 struct rhashtable_iter *hti = (void *)cb->args[2]; in __netlink_diag_dump() 100 req = nlmsg_data(cb->nlh); in __netlink_diag_dump() 112 cb->args[2] = (long)hti; in __netlink_diag_dump() 136 NETLINK_CB(cb->skb).portid, in __netlink_diag_dump() 137 cb->nlh->nlmsg_seq, in __netlink_diag_dump() 166 NETLINK_CB(cb->skb).portid, in __netlink_diag_dump() 167 cb->nlh->nlmsg_seq, in __netlink_diag_dump() 178 cb->args[0] = num; in __netlink_diag_dump() 183 static int netlink_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) in netlink_diag_dump() argument [all …]
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | i915_sw_fence.c | 381 struct i915_sw_dma_fence_cb *cb = container_of(data, typeof(*cb), base); in dma_i915_sw_fence_wake() local 383 i915_sw_fence_complete(cb->fence); in dma_i915_sw_fence_wake() 384 kfree(cb); in dma_i915_sw_fence_wake() 389 struct i915_sw_dma_fence_cb_timer *cb = from_timer(cb, t, timer); in timer_i915_sw_fence_wake() local 392 fence = xchg(&cb->base.fence, NULL); in timer_i915_sw_fence_wake() 397 cb->dma->ops->get_driver_name(cb->dma), in timer_i915_sw_fence_wake() 398 cb->dma->ops->get_timeline_name(cb->dma), in timer_i915_sw_fence_wake() 399 cb->dma->seqno); in timer_i915_sw_fence_wake() 407 struct i915_sw_dma_fence_cb_timer *cb = in dma_i915_sw_fence_wake_timer() local 408 container_of(data, typeof(*cb), base.base); in dma_i915_sw_fence_wake_timer() [all …]
|
/Linux-v4.19/drivers/isdn/gigaset/ |
D | ser-gigaset.c | 107 struct cmdbuf_t *cb, *tcb; in send_cb() local 113 cb = cs->cmdbuf; in send_cb() 114 if (!cb) in send_cb() 117 if (cb->len) { in send_cb() 119 sent = tty->ops->write(tty, cb->buf + cb->offset, cb->len); in send_cb() 126 cb->offset += sent; in send_cb() 127 cb->len -= sent; in send_cb() 129 sent, cb->len, cs->cmdbytes); in send_cb() 132 while (cb && !cb->len) { in send_cb() 135 tcb = cb; in send_cb() [all …]
|
/Linux-v4.19/drivers/dma-buf/ |
D | dma-fence.c | 300 int dma_fence_add_callback(struct dma_fence *fence, struct dma_fence_cb *cb, in dma_fence_add_callback() argument 311 INIT_LIST_HEAD(&cb->node); in dma_fence_add_callback() 332 cb->func = func; in dma_fence_add_callback() 333 list_add_tail(&cb->node, &fence->cb_list); in dma_fence_add_callback() 335 INIT_LIST_HEAD(&cb->node); in dma_fence_add_callback() 386 dma_fence_remove_callback(struct dma_fence *fence, struct dma_fence_cb *cb) in dma_fence_remove_callback() argument 393 ret = !list_empty(&cb->node); in dma_fence_remove_callback() 395 list_del_init(&cb->node); in dma_fence_remove_callback() 409 dma_fence_default_wait_cb(struct dma_fence *fence, struct dma_fence_cb *cb) in dma_fence_default_wait_cb() argument 412 container_of(cb, struct default_wait_cb, base); in dma_fence_default_wait_cb() [all …]
|
/Linux-v4.19/net/strparser/ |
D | strparser.c | 42 return (struct _strp_msg *)((void *)skb->cb + in _strp_msg() 80 strp->cb.abort_parser(strp, err); in strp_parser_err() 229 len = (*strp->cb.parse_msg)(strp, head); in __strp_recv() 317 strp->cb.rcv_msg(strp, head); in __strp_recv() 376 desc.error = strp->cb.read_sock_done(strp, desc.error); in strp_read_sock() 414 strp->cb.lock(strp); in do_strp_work() 426 strp->cb.unlock(strp); in do_strp_work() 441 strp->cb.lock(strp); in strp_msg_timeout() 442 strp->cb.abort_parser(strp, -ETIMEDOUT); in strp_msg_timeout() 443 strp->cb.unlock(strp); in strp_msg_timeout() [all …]
|
/Linux-v4.19/net/tipc/ |
D | socket.h | 62 int tipc_nl_sk_dump(struct sk_buff *skb, struct netlink_callback *cb); 63 int tipc_nl_publ_dump(struct sk_buff *skb, struct netlink_callback *cb); 64 int tipc_sk_fill_sock_diag(struct sk_buff *skb, struct netlink_callback *cb, 67 int tipc_nl_sk_walk(struct sk_buff *skb, struct netlink_callback *cb, 69 struct netlink_callback *cb, 71 int tipc_dump_start(struct netlink_callback *cb); 72 int __tipc_dump_start(struct netlink_callback *cb, struct net *net); 73 int tipc_dump_done(struct netlink_callback *cb);
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/ |
D | hnae.c | 40 static int hnae_alloc_buffer(struct hnae_ring *ring, struct hnae_desc_cb *cb) in hnae_alloc_buffer() argument 48 cb->priv = p; in hnae_alloc_buffer() 49 cb->page_offset = 0; in hnae_alloc_buffer() 50 cb->reuse_flag = 0; in hnae_alloc_buffer() 51 cb->buf = page_address(p); in hnae_alloc_buffer() 52 cb->length = hnae_page_size(ring); in hnae_alloc_buffer() 53 cb->type = DESC_TYPE_PAGE; in hnae_alloc_buffer() 58 static void hnae_free_buffer(struct hnae_ring *ring, struct hnae_desc_cb *cb) in hnae_free_buffer() argument 60 if (unlikely(!cb->priv)) in hnae_free_buffer() 63 if (cb->type == DESC_TYPE_SKB) in hnae_free_buffer() [all …]
|