/linux-6.6.21/drivers/hid/intel-ish-hid/ishtp/ |
D | client.c | 17 int ishtp_cl_get_tx_free_buffer_size(struct ishtp_cl *cl) in ishtp_cl_get_tx_free_buffer_size() argument 22 spin_lock_irqsave(&cl->tx_free_list_spinlock, tx_free_flags); in ishtp_cl_get_tx_free_buffer_size() 23 size = cl->tx_ring_free_size * cl->device->fw_client->props.max_msg_length; in ishtp_cl_get_tx_free_buffer_size() 24 spin_unlock_irqrestore(&cl->tx_free_list_spinlock, tx_free_flags); in ishtp_cl_get_tx_free_buffer_size() 30 int ishtp_cl_get_tx_free_rings(struct ishtp_cl *cl) in ishtp_cl_get_tx_free_rings() argument 32 return cl->tx_ring_free_size; in ishtp_cl_get_tx_free_rings() 42 static void ishtp_read_list_flush(struct ishtp_cl *cl) in ishtp_read_list_flush() argument 48 spin_lock_irqsave(&cl->dev->read_list_spinlock, flags); in ishtp_read_list_flush() 49 list_for_each_entry_safe(rb, next, &cl->dev->read_list.list, list) in ishtp_read_list_flush() 50 if (rb->cl && ishtp_cl_cmp_id(cl, rb->cl)) { in ishtp_read_list_flush() [all …]
|
D | client-buffers.c | 19 int ishtp_cl_alloc_rx_ring(struct ishtp_cl *cl) in ishtp_cl_alloc_rx_ring() argument 21 size_t len = cl->device->fw_client->props.max_msg_length; in ishtp_cl_alloc_rx_ring() 27 for (j = 0; j < cl->rx_ring_size; ++j) { in ishtp_cl_alloc_rx_ring() 28 rb = ishtp_io_rb_init(cl); in ishtp_cl_alloc_rx_ring() 36 spin_lock_irqsave(&cl->free_list_spinlock, flags); in ishtp_cl_alloc_rx_ring() 37 list_add_tail(&rb->list, &cl->free_rb_list.list); in ishtp_cl_alloc_rx_ring() 38 spin_unlock_irqrestore(&cl->free_list_spinlock, flags); in ishtp_cl_alloc_rx_ring() 44 dev_err(&cl->device->dev, "error in allocating Rx buffers\n"); in ishtp_cl_alloc_rx_ring() 45 ishtp_cl_free_rx_ring(cl); in ishtp_cl_alloc_rx_ring() 57 int ishtp_cl_alloc_tx_ring(struct ishtp_cl *cl) in ishtp_cl_alloc_tx_ring() argument [all …]
|
D | hbm.c | 55 static inline void ishtp_hbm_cl_hdr(struct ishtp_cl *cl, uint8_t hbm_cmd, in ishtp_hbm_cl_hdr() argument 63 cmd->host_addr = cl->host_client_id; in ishtp_hbm_cl_hdr() 64 cmd->fw_addr = cl->fw_client_id; in ishtp_hbm_cl_hdr() 76 static inline bool ishtp_hbm_cl_addr_equal(struct ishtp_cl *cl, void *buf) in ishtp_hbm_cl_addr_equal() argument 80 return cl->host_client_id == cmd->host_addr && in ishtp_hbm_cl_addr_equal() 81 cl->fw_client_id == cmd->fw_addr; in ishtp_hbm_cl_addr_equal() 262 struct ishtp_cl *cl) in ishtp_hbm_cl_flow_control_req() argument 270 spin_lock_irqsave(&cl->fc_spinlock, flags); in ishtp_hbm_cl_flow_control_req() 273 ishtp_hbm_cl_hdr(cl, ISHTP_FLOW_CONTROL_CMD, &flow_ctrl, len); in ishtp_hbm_cl_flow_control_req() 279 if (cl->out_flow_ctrl_creds) { in ishtp_hbm_cl_flow_control_req() [all …]
|
/linux-6.6.21/net/sched/ |
D | sch_hfsc.c | 185 eltree_insert(struct hfsc_class *cl) in eltree_insert() argument 187 struct rb_node **p = &cl->sched->eligible.rb_node; in eltree_insert() 194 if (cl->cl_e >= cl1->cl_e) in eltree_insert() 199 rb_link_node(&cl->el_node, parent, p); in eltree_insert() 200 rb_insert_color(&cl->el_node, &cl->sched->eligible); in eltree_insert() 204 eltree_remove(struct hfsc_class *cl) in eltree_remove() argument 206 rb_erase(&cl->el_node, &cl->sched->eligible); in eltree_remove() 210 eltree_update(struct hfsc_class *cl) in eltree_update() argument 212 eltree_remove(cl); in eltree_update() 213 eltree_insert(cl); in eltree_update() [all …]
|
D | sch_htb.c | 223 struct htb_class *cl; in htb_classify() local 234 cl = htb_find(skb->priority, sch); in htb_classify() 235 if (cl) { in htb_classify() 236 if (cl->level == 0) in htb_classify() 237 return cl; in htb_classify() 239 tcf = rcu_dereference_bh(cl->filter_list); in htb_classify() 257 cl = (void *)res.class; in htb_classify() 258 if (!cl) { in htb_classify() 261 cl = htb_find(res.classid, sch); in htb_classify() 262 if (!cl) in htb_classify() [all …]
|
D | sch_drr.c | 58 struct drr_class *cl = (struct drr_class *)*arg; in drr_change_class() local 83 if (cl != NULL) { in drr_change_class() 85 err = gen_replace_estimator(&cl->bstats, NULL, in drr_change_class() 86 &cl->rate_est, in drr_change_class() 97 cl->quantum = quantum; in drr_change_class() 103 cl = kzalloc(sizeof(struct drr_class), GFP_KERNEL); in drr_change_class() 104 if (cl == NULL) in drr_change_class() 107 gnet_stats_basic_sync_init(&cl->bstats); in drr_change_class() 108 cl->common.classid = classid; in drr_change_class() 109 cl->quantum = quantum; in drr_change_class() [all …]
|
D | sch_qfq.c | 317 struct qfq_class *cl) in qfq_add_to_agg() argument 319 cl->agg = agg; in qfq_add_to_agg() 322 if (cl->qdisc->q.qlen > 0) { /* adding an active class */ in qfq_add_to_agg() 323 list_add_tail(&cl->alist, &agg->active); in qfq_add_to_agg() 325 cl && q->in_serv_agg != agg) /* agg was inactive */ in qfq_add_to_agg() 345 static void qfq_deactivate_class(struct qfq_sched *q, struct qfq_class *cl) in qfq_deactivate_class() argument 347 struct qfq_aggregate *agg = cl->agg; in qfq_deactivate_class() 350 list_del(&cl->alist); /* remove from RR queue of the aggregate */ in qfq_deactivate_class() 356 static void qfq_rm_from_agg(struct qfq_sched *q, struct qfq_class *cl) in qfq_rm_from_agg() argument 358 struct qfq_aggregate *agg = cl->agg; in qfq_rm_from_agg() [all …]
|
/linux-6.6.21/sound/soc/intel/avs/ |
D | cldma.c | 60 void hda_cldma_fill(struct hda_cldma *cl) in hda_cldma_fill() argument 64 if (cl->remaining > cl->buffer_size) in hda_cldma_fill() 65 size = cl->buffer_size; in hda_cldma_fill() 67 size = cl->remaining; in hda_cldma_fill() 69 offset = snd_hdac_stream_readl(cl, CL_SD_SPIB); in hda_cldma_fill() 70 if (offset + size > cl->buffer_size) { in hda_cldma_fill() 73 ss = cl->buffer_size - offset; in hda_cldma_fill() 74 memcpy(cl->dmab_data.area + offset, cl->position, ss); in hda_cldma_fill() 77 cl->position += ss; in hda_cldma_fill() 78 cl->remaining -= ss; in hda_cldma_fill() [all …]
|
/linux-6.6.21/drivers/misc/mei/ |
D | client.c | 341 cb->cl->tx_cb_queued++; in mei_tx_cb_enqueue() 353 if (!WARN_ON(cb->cl->tx_cb_queued == 0)) in mei_tx_cb_dequeue() 354 cb->cl->tx_cb_queued--; in mei_tx_cb_dequeue() 367 static void mei_cl_set_read_by_fp(const struct mei_cl *cl, in mei_cl_set_read_by_fp() argument 372 list_for_each_entry(cl_vtag, &cl->vtag_map, list) { in mei_cl_set_read_by_fp() 389 static struct mei_cl_cb *mei_io_cb_init(struct mei_cl *cl, in mei_io_cb_init() argument 401 cb->cl = cl; in mei_io_cb_init() 417 const struct mei_cl *cl) in mei_io_list_flush_cl() argument 422 if (cl == cb->cl) { in mei_io_list_flush_cl() 438 const struct mei_cl *cl, in mei_io_tx_list_free_cl() argument [all …]
|
D | client.h | 131 int mei_cl_link(struct mei_cl *cl); 132 int mei_cl_unlink(struct mei_cl *cl); 136 struct mei_cl_cb *mei_cl_read_cb(struct mei_cl *cl, const struct file *fp); 138 void mei_cl_add_rd_completed(struct mei_cl *cl, struct mei_cl_cb *cb); 139 void mei_cl_del_rd_completed(struct mei_cl *cl, struct mei_cl_cb *cb); 141 struct mei_cl_cb *mei_cl_alloc_cb(struct mei_cl *cl, size_t length, 144 struct mei_cl_cb *mei_cl_enqueue_ctrl_wr_cb(struct mei_cl *cl, size_t length, 147 int mei_cl_flush_queues(struct mei_cl *cl, const struct file *fp); 150 const struct file *mei_cl_fp_by_vtag(const struct mei_cl *cl, u8 vtag); 151 int mei_cl_vt_support_check(const struct mei_cl *cl); [all …]
|
D | main.c | 50 struct mei_cl *cl; in mei_open() local 65 cl = mei_cl_alloc_linked(dev); in mei_open() 66 if (IS_ERR(cl)) { in mei_open() 67 err = PTR_ERR(cl); in mei_open() 71 cl->fp = file; in mei_open() 72 file->private_data = cl; in mei_open() 90 static void mei_cl_vtag_remove_by_fp(const struct mei_cl *cl, in mei_cl_vtag_remove_by_fp() argument 95 list_for_each_entry_safe(vtag_l, next, &cl->vtag_map, list) { in mei_cl_vtag_remove_by_fp() 114 struct mei_cl *cl = file->private_data; in mei_release() local 118 if (WARN_ON(!cl || !cl->dev)) in mei_release() [all …]
|
D | interrupt.c | 32 struct mei_cl *cl; in mei_irq_compl_handler() local 35 cl = cb->cl; in mei_irq_compl_handler() 39 mei_cl_complete(cl, cb); in mei_irq_compl_handler() 52 static inline int mei_cl_hbm_equal(struct mei_cl *cl, in mei_cl_hbm_equal() argument 55 return mei_cl_host_addr(cl) == mei_hdr->host_addr && in mei_cl_hbm_equal() 56 mei_cl_me_id(cl) == mei_hdr->me_addr; in mei_cl_hbm_equal() 93 static int mei_cl_irq_read_msg(struct mei_cl *cl, in mei_cl_irq_read_msg() argument 98 struct mei_device *dev = cl->dev; in mei_cl_irq_read_msg() 115 cb = list_first_entry_or_null(&cl->rd_pending, struct mei_cl_cb, list); in mei_cl_irq_read_msg() 117 if (!mei_cl_is_fixed_address(cl)) { in mei_cl_irq_read_msg() [all …]
|
D | bus.c | 35 ssize_t __mei_cl_send(struct mei_cl *cl, const u8 *buf, size_t length, u8 vtag, in __mei_cl_send() argument 38 return __mei_cl_send_timeout(cl, buf, length, vtag, mode, MAX_SCHEDULE_TIMEOUT); in __mei_cl_send() 55 ssize_t __mei_cl_send_timeout(struct mei_cl *cl, const u8 *buf, size_t length, u8 vtag, in __mei_cl_send_timeout() argument 62 if (WARN_ON(!cl || !cl->dev)) in __mei_cl_send_timeout() 65 bus = cl->dev; in __mei_cl_send_timeout() 74 if (!mei_cl_is_connected(cl)) { in __mei_cl_send_timeout() 80 if (!mei_me_cl_is_active(cl->me_cl)) { in __mei_cl_send_timeout() 87 rets = mei_cl_vt_support_check(cl); in __mei_cl_send_timeout() 92 if (length > mei_cl_mtu(cl)) { in __mei_cl_send_timeout() 97 while (cl->tx_cb_queued >= bus->tx_queue_limit) { in __mei_cl_send_timeout() [all …]
|
D | hbm.c | 148 void mei_hbm_cl_hdr(struct mei_cl *cl, u8 hbm_cmd, void *buf, size_t len) in mei_hbm_cl_hdr() argument 155 cmd->host_addr = mei_cl_host_addr(cl); in mei_hbm_cl_hdr() 156 cmd->me_addr = mei_cl_me_id(cl); in mei_hbm_cl_hdr() 170 static inline int mei_hbm_cl_write(struct mei_device *dev, struct mei_cl *cl, in mei_hbm_cl_write() argument 176 mei_hbm_cl_hdr(cl, hbm_cmd, buf, len); in mei_hbm_cl_write() 191 bool mei_hbm_cl_addr_equal(struct mei_cl *cl, struct mei_hbm_cl_cmd *cmd) in mei_hbm_cl_addr_equal() argument 193 return mei_cl_host_addr(cl) == cmd->host_addr && in mei_hbm_cl_addr_equal() 194 mei_cl_me_id(cl) == cmd->me_addr; in mei_hbm_cl_addr_equal() 209 struct mei_cl *cl; in mei_hbm_cl_find_by_cmd() local 211 list_for_each_entry(cl, &dev->file_list, link) in mei_hbm_cl_find_by_cmd() [all …]
|
/linux-6.6.21/drivers/md/bcache/ |
D | closure.c | 16 static inline void closure_put_after_sub(struct closure *cl, int flags) in closure_put_after_sub() argument 24 if (cl->fn && !(flags & CLOSURE_DESTRUCTOR)) { in closure_put_after_sub() 25 atomic_set(&cl->remaining, in closure_put_after_sub() 27 closure_queue(cl); in closure_put_after_sub() 29 struct closure *parent = cl->parent; in closure_put_after_sub() 30 closure_fn *destructor = cl->fn; in closure_put_after_sub() 32 closure_debug_destroy(cl); in closure_put_after_sub() 35 destructor(cl); in closure_put_after_sub() 44 void closure_sub(struct closure *cl, int v) in closure_sub() argument 46 closure_put_after_sub(cl, atomic_sub_return(v, &cl->remaining)); in closure_sub() [all …]
|
D | closure.h | 169 void closure_sub(struct closure *cl, int v); 170 void closure_put(struct closure *cl); 172 bool closure_wait(struct closure_waitlist *list, struct closure *cl); 173 void __closure_sync(struct closure *cl); 181 static inline void closure_sync(struct closure *cl) in closure_sync() argument 183 if ((atomic_read(&cl->remaining) & CLOSURE_REMAINING_MASK) != 1) in closure_sync() 184 __closure_sync(cl); in closure_sync() 190 void closure_debug_create(struct closure *cl); 191 void closure_debug_destroy(struct closure *cl); 196 static inline void closure_debug_create(struct closure *cl) {} in closure_debug_create() argument [all …]
|
D | request.c | 28 static void bch_data_insert_start(struct closure *cl); 58 static void bch_data_insert_keys(struct closure *cl) in bch_data_insert_keys() argument 60 struct data_insert_op *op = container_of(cl, struct data_insert_op, cl); in bch_data_insert_keys() 67 op->flush_journal ? cl : NULL); in bch_data_insert_keys() 82 continue_at(cl, bch_data_insert_start, op->wq); in bch_data_insert_keys() 87 closure_return(cl); in bch_data_insert_keys() 108 static void bch_data_invalidate(struct closure *cl) in bch_data_invalidate() argument 110 struct data_insert_op *op = container_of(cl, struct data_insert_op, cl); in bch_data_invalidate() 136 continue_at(cl, bch_data_insert_keys, op->wq); in bch_data_invalidate() 139 static void bch_data_insert_error(struct closure *cl) in bch_data_insert_error() argument [all …]
|
/linux-6.6.21/drivers/clk/ |
D | clkdev.c | 38 struct clk_lookup *p, *cl = NULL; in clk_find() local 62 cl = p; in clk_find() 69 return cl; in clk_find() 74 struct clk_lookup *cl; in clk_find_hw() local 78 cl = clk_find(dev_id, con_id); in clk_find_hw() 79 if (cl) in clk_find_hw() 80 hw = cl->clk_hw; in clk_find_hw() 121 static void __clkdev_add(struct clk_lookup *cl) in __clkdev_add() argument 124 list_add_tail(&cl->node, &clocks); in __clkdev_add() 128 void clkdev_add(struct clk_lookup *cl) in clkdev_add() argument [all …]
|
/linux-6.6.21/drivers/hsi/ |
D | hsi_core.c | 60 struct hsi_client *cl = to_hsi_client(dev); in hsi_client_release() local 62 kfree(cl->tx_cfg.channels); in hsi_client_release() 63 kfree(cl->rx_cfg.channels); in hsi_client_release() 64 kfree(cl); in hsi_client_release() 70 struct hsi_client *cl; in hsi_new_client() local 73 cl = kzalloc(sizeof(*cl), GFP_KERNEL); in hsi_new_client() 74 if (!cl) in hsi_new_client() 77 cl->tx_cfg = info->tx_cfg; in hsi_new_client() 78 if (cl->tx_cfg.channels) { in hsi_new_client() 79 size = cl->tx_cfg.num_channels * sizeof(*cl->tx_cfg.channels); in hsi_new_client() [all …]
|
/linux-6.6.21/include/linux/hsi/ |
D | hsi.h | 138 static inline void hsi_client_set_drvdata(struct hsi_client *cl, void *data) in hsi_client_set_drvdata() argument 140 dev_set_drvdata(&cl->device, data); in hsi_client_set_drvdata() 143 static inline void *hsi_client_drvdata(struct hsi_client *cl) in hsi_client_drvdata() argument 145 return dev_get_drvdata(&cl->device); in hsi_client_drvdata() 148 int hsi_register_port_event(struct hsi_client *cl, 150 int hsi_unregister_port_event(struct hsi_client *cl); 187 struct hsi_client *cl; member 230 int (*setup)(struct hsi_client *cl); 231 int (*flush)(struct hsi_client *cl); 232 int (*start_tx)(struct hsi_client *cl); [all …]
|
/linux-6.6.21/drivers/hsi/clients/ |
D | ssi_protocol.c | 139 struct hsi_client *cl; member 217 struct ssi_protocol *ssi = hsi_client_drvdata(msg->cl); in ssip_release_cmd() 219 dev_dbg(&msg->cl->device, "Release cmd 0x%08x\n", ssip_get_cmd(msg)); in ssip_release_cmd() 331 if (slave->device.parent == ssi->cl->device.parent) { in ssip_slave_get_master() 332 master = ssi->cl; in ssip_slave_get_master() 385 static void ssip_reset(struct hsi_client *cl) in ssip_reset() argument 387 struct ssi_protocol *ssi = hsi_client_drvdata(cl); in ssip_reset() 393 hsi_flush(cl); in ssip_reset() 396 hsi_stop_tx(cl); in ssip_reset() 399 ssi_waketest(cl, 0); /* FIXME: To be removed */ in ssip_reset() [all …]
|
D | hsi_char.c | 85 struct hsi_client *cl; member 105 struct hsi_client *cl; member 227 struct hsc_client_data *cl_data = hsi_client_drvdata(msg->cl); in hsc_rx_completed() 247 struct hsc_client_data *cl_data = hsi_client_drvdata(msg->cl); in hsc_tx_completed() 267 struct hsc_client_data *cl_data = hsi_client_drvdata(msg->cl); in hsc_break_req_destructor() 275 struct hsc_client_data *cl_data = hsi_client_drvdata(msg->cl); in hsc_break_received() 294 hsi_flush(msg->cl); in hsc_break_received() 295 ret = hsi_async_read(msg->cl, msg); in hsc_break_received() 300 static int hsc_break_request(struct hsi_client *cl) in hsc_break_request() argument 302 struct hsc_client_data *cl_data = hsi_client_drvdata(cl); in hsc_break_request() [all …]
|
/linux-6.6.21/sound/soc/apple/ |
D | mca.c | 65 #define PORT_DATA_SEL_TXA(cl) (1 << ((cl)*2)) argument 66 #define PORT_DATA_SEL_TXB(cl) (2 << ((cl)*2)) argument 111 #define REG_DMA_ADAPTER_A(cl) (0x8000 * (cl)) argument 112 #define REG_DMA_ADAPTER_B(cl) (0x8000 * (cl) + 0x4000) argument 167 static void mca_modify(struct mca_cluster *cl, int regoffset, u32 mask, u32 val) in mca_modify() argument 169 __iomem void *ptr = cl->base + regoffset; in mca_modify() 195 struct mca_cluster *cl = mca_dai_to_cluster(dai); in mca_fe_early_trigger() local 205 mca_modify(cl, serdes_conf, SERDES_CONF_SYNC_SEL, in mca_fe_early_trigger() 207 mca_modify(cl, serdes_conf, SERDES_CONF_SYNC_SEL, in mca_fe_early_trigger() 209 mca_modify(cl, serdes_unit + REG_SERDES_STATUS, in mca_fe_early_trigger() [all …]
|
/linux-6.6.21/drivers/gpu/drm/bridge/ |
D | parade-ps8622.c | 86 struct i2c_client *cl = ps8622->client; in ps8622_send_config() local 90 err = ps8622_set(cl, 0x02, 0xa1, 0x01); in ps8622_send_config() 95 err = ps8622_set(cl, 0x04, 0x14, 0x01); in ps8622_send_config() 100 err = ps8622_set(cl, 0x04, 0xe3, 0x20); in ps8622_send_config() 105 err = ps8622_set(cl, 0x04, 0xe2, 0x80); in ps8622_send_config() 113 err = ps8622_set(cl, 0x04, 0x8a, 0x0c); in ps8622_send_config() 118 err = ps8622_set(cl, 0x04, 0x89, 0x08); in ps8622_send_config() 123 err = ps8622_set(cl, 0x04, 0x71, 0x2d); in ps8622_send_config() 128 err = ps8622_set(cl, 0x04, 0x7d, 0x07); in ps8622_send_config() 133 err = ps8622_set(cl, 0x04, 0x7b, 0x00); in ps8622_send_config() [all …]
|
/linux-6.6.21/include/linux/ |
D | intel-ish-client-if.h | 70 struct ishtp_cl *cl; member 92 void ishtp_cl_free(struct ishtp_cl *cl); 93 int ishtp_cl_link(struct ishtp_cl *cl); 94 void ishtp_cl_unlink(struct ishtp_cl *cl); 95 int ishtp_cl_disconnect(struct ishtp_cl *cl); 96 int ishtp_cl_connect(struct ishtp_cl *cl); 97 int ishtp_cl_send(struct ishtp_cl *cl, uint8_t *buf, size_t length); 98 int ishtp_cl_flush_queues(struct ishtp_cl *cl); 100 bool ishtp_cl_tx_empty(struct ishtp_cl *cl); 101 struct ishtp_cl_rb *ishtp_cl_rx_get_rb(struct ishtp_cl *cl); [all …]
|