Home
last modified time | relevance | path

Searched refs:cl (Results 1 – 25 of 409) sorted by relevance

12345678910>>...17

/openbmc/linux/drivers/hid/intel-ish-hid/ishtp/
H A Dclient.c50 if (rb->cl && ishtp_cl_cmp_id(cl, rb->cl)) { in ishtp_read_list_flush()
68 if (WARN_ON(!cl || !cl->dev)) in ishtp_cl_flush_queues()
177 if (WARN_ON(!cl || !cl->dev)) in ishtp_cl_link()
229 if (!cl || !cl->dev) in ishtp_cl_unlink()
485 rb->cl = cl; in ishtp_cl_read_start()
858 cl = rb->cl; in recv_ishtp_cl_msg()
915 new_rb->cl = cl; in recv_ishtp_cl_msg()
947 cl = complete_rb->cl; in recv_ishtp_cl_msg()
978 cl = rb->cl; in recv_ishtp_cl_msg_dma()
1044 new_rb->cl = cl; in recv_ishtp_cl_msg_dma()
[all …]
H A Dclient-buffers.c28 rb = ishtp_io_rb_init(cl); in ishtp_cl_alloc_rx_ring()
45 ishtp_cl_free_rx_ring(cl); in ishtp_cl_alloc_rx_ring()
63 cl->tx_ring_free_size = 0; in ishtp_cl_alloc_tx_ring()
81 ++cl->tx_ring_free_size; in ishtp_cl_alloc_tx_ring()
87 ishtp_cl_free_tx_ring(cl); in ishtp_cl_alloc_tx_ring()
141 --cl->tx_ring_free_size; in ishtp_cl_free_tx_ring()
191 rb->cl = cl; in ishtp_io_rb_init()
231 struct ishtp_cl *cl; in ishtp_cl_io_rb_recycle() local
235 if (!rb || !rb->cl) in ishtp_cl_io_rb_recycle()
238 cl = rb->cl; in ishtp_cl_io_rb_recycle()
[all …]
H A Dhbm.c262 struct ishtp_cl *cl) in ishtp_hbm_cl_flow_control_req() argument
289 ++cl->out_flow_ctrl_cnt; in ishtp_hbm_cl_flow_control_req()
291 if (cl->ts_rx) { in ishtp_hbm_cl_flow_control_req()
292 ktime_t ts_diff = ktime_sub(cl->ts_out_fc, cl->ts_rx); in ishtp_hbm_cl_flow_control_req()
297 ++cl->err_send_fc; in ishtp_hbm_cl_flow_control_req()
388 cl->status = 0; in ishtp_hbm_cl_connect_res()
391 cl->status = -ENODEV; in ishtp_hbm_cl_connect_res()
410 struct ishtp_cl *cl; in ishtp_hbm_fw_disconnect_req() local
447 struct ishtp_cl *cl; in ishtp_hbm_dma_xfer_ack() local
477 cl->last_dma_addr < in ishtp_hbm_dma_xfer_ack()
[all …]
/openbmc/linux/net/sched/
H A Dsch_hfsc.c628 cl->cl_e = rtsc_y2x(&cl->cl_eligible, cl->cl_cumul); in init_ed()
637 cl->cl_e = rtsc_y2x(&cl->cl_eligible, cl->cl_cumul); in update_ed()
673 for (; cl->cl_parent != NULL; cl = cl->cl_parent) { in init_vf()
707 rtsc_min(&cl->cl_virtual, &cl->cl_fsc, cl->cl_vt, cl->cl_total); in init_vf()
751 for (; cl->cl_parent != NULL; cl = cl->cl_parent) { in update_vf()
763 cl->cl_vt = rtsc_y2x(&cl->cl_virtual, cl->cl_total) + cl->cl_vtadj; in update_vf()
771 cl->cl_vtadj += cl->cl_parent->cl_cvtmin - cl->cl_vt; in update_vf()
796 cl->cl_myf = rtsc_y2x(&cl->cl_ulimit, cl->cl_total); in update_vf()
892 rtsc_init(&cl->cl_virtual, &cl->cl_fsc, cl->cl_vt, cl->cl_total); in hfsc_change_fsc()
908 cl->cl_fsc = cl->cl_rsc; in hfsc_upgrade_rt()
[all …]
H A Dsch_htb.c273 if (!cl || cl->level) in htb_classify()
594 WARN_ON(cl->level || !cl->leaf.q || !cl->leaf.q->q.qlen); in htb_activate()
597 cl->prio_activity = 1 << cl->prio; in htb_activate()
732 cl = cl->parent; in htb_charge_class()
908 skb = cl->leaf.q->dequeue(cl->leaf.q); in htb_dequeue_tree()
1253 if (!cl->level && cl->leaf.q) in htb_dump_class()
1330 if (!cl->level && cl->leaf.q) in htb_dump_class_stats()
1341 cl->bstats = cl->leaf.q->bstats; in htb_dump_class_stats()
1481 return !cl->level ? cl->leaf.q : NULL; in htb_leaf()
1508 WARN_ON(cl->level || !cl->leaf.q || cl->prio_activity); in htb_parent_to_leaf()
[all …]
H A Dsch_drr.c104 if (cl == NULL) in drr_change_class()
119 err = gen_replace_estimator(&cl->bstats, NULL, &cl->rate_est, in drr_change_class()
124 kfree(cl); in drr_change_class()
143 kfree(cl); in drr_destroy_class()
178 if (cl) { in drr_tcf_block()
191 if (cl) in drr_bind_tcf()
306 return cl; in drr_classify()
327 return cl; in drr_classify()
361 cl->deficit = cl->quantum; in drr_enqueue()
380 skb = cl->qdisc->ops->peek(cl->qdisc); in drr_dequeue()
[all …]
H A Dsch_qfq.c449 delta_w = weight - (cl ? cl->agg->class_weight : 0); in qfq_change_class()
526 kfree(cl); in qfq_change_class()
537 kfree(cl); in qfq_destroy_class()
572 if (cl) in qfq_tcf_block()
583 if (cl) in qfq_bind_tcf()
692 return cl; in qfq_classify()
713 return cl; in qfq_classify()
989 else if (cl->deficit < qdisc_pkt_len(cl->qdisc->ops->peek(cl->qdisc))) { in agg_dequeue()
1004 skb = (*cl)->qdisc->ops->peek((*cl)->qdisc); in qfq_peek_skb()
1233 cl->agg->lmax, len, cl->common.classid); in qfq_enqueue()
[all …]
/openbmc/linux/sound/soc/intel/avs/
H A Dcldma.c64 if (cl->remaining > cl->buffer_size) in hda_cldma_fill()
74 memcpy(cl->dmab_data.area + offset, cl->position, ss); in hda_cldma_fill()
81 memcpy(cl->dmab_data.area + offset, cl->position, size); in hda_cldma_fill()
109 cl->sd_status); in cldma_memcpy_work()
126 if (!cl->remaining) in hda_cldma_transfer()
131 hda_cldma_fill(cl); in hda_cldma_transfer()
238 cldma_setup_bdle(cl, cl->buffer_size / 2); in hda_cldma_setup()
243 snd_hdac_stream_writel(cl, SD_CBL, cl->buffer_size); in hda_cldma_setup()
244 snd_hdac_stream_writeb(cl, SD_LVI, cl->num_periods - 1); in hda_cldma_setup()
262 cl->sd_status = snd_hdac_stream_readb(cl, SD_STS); in cldma_irq_handler()
[all …]
/openbmc/linux/drivers/misc/mei/
H A Dclient.c401 cb->cl = cl; in mei_io_cb_init()
422 if (cl == cb->cl) { in mei_io_list_flush_cl()
576 if (WARN_ON(!cl || !cl->dev)) in mei_cl_flush_queues()
605 memset(cl, 0, sizeof(*cl)); in mei_cl_init()
653 if (WARN_ON(!cl || !cl->dev)) in mei_cl_link()
984 if (WARN_ON(!cl || !cl->dev)) in mei_cl_disconnect()
1529 if (WARN_ON(!cl || !cl->dev)) in mei_cl_notify_request()
1597 if (!cl || !cl->dev) in mei_cl_notify()
1633 if (WARN_ON(!cl || !cl->dev)) in mei_cl_notify_get()
1680 if (WARN_ON(!cl || !cl->dev)) in mei_cl_read_start()
[all …]
H A Dclient.h131 int mei_cl_link(struct mei_cl *cl);
132 int mei_cl_unlink(struct mei_cl *cl);
165 return cl->state == MEI_FILE_CONNECTED; in mei_cl_is_connected()
177 return cl->me_cl ? cl->me_cl->client_id : 0; in mei_cl_me_id()
189 return cl->me_cl ? cl->me_cl->props.max_msg_length : 0; in mei_cl_mtu()
201 return cl->me_cl && cl->me_cl->props.fixed_address; in mei_cl_is_fixed_address()
214 return cl->me_cl->props.single_recv_buf; in mei_cl_is_single_recv_buf()
226 return mei_me_cl_uuid(cl->me_cl); in mei_cl_uuid()
238 return mei_cl_is_fixed_address(cl) ? 0 : cl->host_client_id; in mei_cl_host_addr()
264 void mei_cl_notify(struct mei_cl *cl);
[all …]
H A Dmain.c71 cl->fp = file; in mei_open()
118 if (WARN_ON(!cl || !cl->dev)) in mei_release()
149 kfree(cl); in mei_release()
178 if (WARN_ON(!cl || !cl->dev)) in mei_read()
319 if (WARN_ON(!cl || !cl->dev)) in mei_write()
654 if (WARN_ON(!cl || !cl->dev)) in mei_ioctl()
791 if (WARN_ON(!cl || !cl->dev)) in mei_poll()
818 mei_cl_read_start(cl, mei_cl_mtu(cl), file); in mei_poll()
845 if (cb->cl == cl) in mei_cl_is_write_queued()
848 if (cb->cl == cl) in mei_cl_is_write_queued()
[all …]
H A Dinterrupt.c32 struct mei_cl *cl; in mei_irq_compl_handler() local
35 cl = cb->cl; in mei_irq_compl_handler()
121 cb = mei_cl_alloc_cb(cl, mei_cl_mtu(cl), MEI_FOP_READ, cl->fp); in mei_cl_irq_read_msg()
307 cl->status = ret; in mei_cl_irq_read()
365 struct mei_cl *cl; in mei_irq_read_handler() local
511 struct mei_cl *cl; in mei_irq_write_handler() local
531 cl = cb->cl; in mei_irq_write_handler()
533 cl->status = 0; in mei_irq_write_handler()
542 cl = cb->cl; in mei_irq_write_handler()
596 cl = cb->cl; in mei_irq_write_handler()
[all …]
H A Dbus.c62 if (WARN_ON(!cl || !cl->dev)) in __mei_cl_send_timeout()
163 if (WARN_ON(!cl || !cl->dev)) in __mei_cl_recv()
275 struct mei_cl *cl = cldev->cl; in mei_cldev_send_vtag() local
297 struct mei_cl *cl = cldev->cl; in mei_cldev_recv_vtag() local
319 struct mei_cl *cl = cldev->cl; in mei_cldev_recv_nonblock_vtag() local
698 cl = cldev->cl; in mei_cldev_dma_map()
730 cl = cldev->cl; in mei_cldev_dma_unmap()
757 cl = cldev->cl; in mei_cldev_enable()
835 cl = cldev->cl; in mei_cldev_disable()
903 cl = cldev->cl; in mei_cldev_send_gsc_command()
[all …]
/openbmc/linux/drivers/md/bcache/
H A Dclosure.c25 atomic_set(&cl->remaining, in closure_put_after_sub()
27 closure_queue(cl); in closure_put_after_sub()
32 closure_debug_destroy(cl); in closure_put_after_sub()
35 destructor(cl); in closure_put_after_sub()
46 closure_put_after_sub(cl, atomic_sub_return(v, &cl->remaining)); in closure_sub()
54 closure_put_after_sub(cl, atomic_dec_return(&cl->remaining)); in closure_put()
63 struct closure *cl, *t; in __closure_wake_up() local
118 cl->s = &s; in __closure_sync()
156 list_del(&cl->all); in closure_debug_destroy()
164 struct closure *cl; in debug_show() local
[all …]
H A Dclosure.h184 __closure_sync(cl); in closure_sync()
204 cl->ip = _THIS_IP_; in closure_set_ip()
211 cl->ip = _RET_IP_; in closure_set_ret_ip()
218 cl->waiting_on = f; in closure_set_waiting()
230 closure_set_ip(cl); in set_closure_fn()
231 cl->fn = fn; in set_closure_fn()
232 cl->wq = wq; in set_closure_fn()
247 INIT_WORK(&cl->work, cl->work.func); in closure_queue()
250 cl->fn(cl); in closure_queue()
275 cl->parent = parent; in closure_init()
[all …]
H A Drequest.c489 struct search *s = container_of(cl, struct search, cl); in bch_cache_read_endio()
703 struct search *s = container_of(cl, struct search, cl); in search_free()
754 struct search *s = container_of(cl, struct search, cl); in cached_dev_bio_complete()
855 closure_call(&s->iop.cl, bch_data_insert, NULL, cl); in cached_dev_read_done()
950 struct closure *cl = &s->cl; in cached_dev_read() local
952 closure_call(&s->iop.cl, cache_lookup, NULL, cl); in cached_dev_read()
969 struct closure *cl = &s->cl; in cached_dev_write() local
1047 closure_call(&s->iop.cl, bch_data_insert, NULL, cl); in cached_dev_write()
1291 cl = &s->cl; in flash_dev_submit_bio()
1313 closure_call(&s->iop.cl, bch_data_insert, NULL, cl); in flash_dev_submit_bio()
[all …]
/openbmc/linux/drivers/clk/
H A Dclkdev.c62 cl = p; in clk_find()
69 return cl; in clk_find()
79 if (cl) in clk_find_hw()
131 cl->clk_hw = __clk_get_hw(cl->clk); in clkdev_add()
140 cl->clk_hw = __clk_get_hw(cl->clk); in clkdev_add_table()
142 cl++; in clkdev_add_table()
187 if (cl) in vclkdev_create()
190 return cl; in vclkdev_create()
212 return cl; in clkdev_create()
235 return cl; in clkdev_hw_create()
[all …]
/openbmc/linux/drivers/hsi/
H A Dhsi_core.c64 kfree(cl); in hsi_client_release()
73 cl = kzalloc(sizeof(*cl), GFP_KERNEL); in hsi_new_client()
74 if (!cl) in hsi_new_client()
108 return cl; in hsi_new_client()
112 kfree(cl); in hsi_new_client()
206 cl = kzalloc(sizeof(*cl), GFP_KERNEL); in hsi_add_client_from_dt()
207 if (!cl) in hsi_add_client_from_dt()
234 cl->rx_cfg.speed = cl->tx_cfg.speed; in hsi_add_client_from_dt()
308 kfree(cl); in hsi_add_client_from_dt()
585 msg->cl = cl; in hsi_async()
[all …]
/openbmc/linux/include/linux/hsi/
H A Dhsi.h187 struct hsi_client *cl; member
240 #define hsi_get_port(cl) to_hsi_port((cl)->device.parent) argument
248 return cl->pclaimed; in hsi_port_claimed()
356 if (!hsi_port_claimed(cl)) in hsi_setup()
358 return hsi_get_port(cl)->setup(cl); in hsi_setup()
372 if (!hsi_port_claimed(cl)) in hsi_flush()
374 return hsi_get_port(cl)->flush(cl); in hsi_flush()
387 return hsi_async(cl, msg); in hsi_async_read()
400 return hsi_async(cl, msg); in hsi_async_write()
413 return hsi_get_port(cl)->start_tx(cl); in hsi_start_tx()
[all …]
/openbmc/linux/drivers/hsi/clients/
H A Dssi_protocol.c393 hsi_flush(cl); in ssip_reset()
456 struct hsi_client *cl = ssi->cl; in ssip_keep_alive() local
483 struct hsi_client *cl = ssi->cl; in ssip_rx_wd() local
492 struct hsi_client *cl = ssi->cl; in ssip_tx_wd() local
559 struct hsi_client *cl = msg->cl; in ssip_strans_complete() local
640 struct hsi_client *cl = msg->cl; in ssip_rx_data_complete() local
815 struct hsi_client *cl = msg->cl; in ssip_rxcmd_complete() local
854 struct hsi_client *cl = msg->cl; in ssip_swbreak_complete() local
876 struct hsi_client *cl = msg->cl; in ssip_tx_data_complete() local
964 struct hsi_client *cl = ssi->cl; in ssip_xmit_work() local
[all …]
H A Dhsi_char.c85 struct hsi_client *cl; member
105 struct hsi_client *cl; member
294 hsi_flush(msg->cl); in hsc_break_received()
355 tmp = cl->rx_cfg; in hsc_rx_set()
359 ret = hsi_setup(cl); in hsc_rx_set()
361 cl->rx_cfg = tmp; in hsc_rx_set()
390 tmp = cl->tx_cfg; in hsc_tx_set()
397 cl->tx_cfg = tmp; in hsc_tx_set()
690 hsc_baseminor = HSC_BASEMINOR(hsi_id(cl), hsi_port_id(cl)); in hsc_probe()
709 cl_data->cl = cl; in hsc_probe()
[all …]
/openbmc/linux/sound/soc/apple/
H A Dmca.c65 #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
268 cl->no, ret); in mca_fe_enable_clocks()
277 cl->pd_link = device_link_add(mca->dev, cl->pd_dev, in mca_fe_enable_clocks()
287 writel_relaxed(cl->no + 1, cl->base + REG_SYNCGEN_MCLK_SEL); in mca_fe_enable_clocks()
435 mca_modify(cl, in mca_configure_serdes()
591 tdm_mask = is_tx ? cl->tdm_tx_mask : cl->tdm_rx_mask; in mca_fe_hw_params()
674 cl->no, ret); in mca_fe_hw_params()
[all …]
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dparade-ps8622.c86 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 …]
/openbmc/obmc-ikvm/
H A Dikvm_server.cpp99 rfbClientPtr cl; in sendFrame() local
151 if (cl->enableLastRectEncoding) in sendFrame()
171 rfbSendUpdateBuf(cl); in sendFrame()
175 cl->updateBuf[cl->ublen++] = (char)(rfbTightJpeg << 4); in sendFrame()
181 rfbSendUpdateBuf(cl); in sendFrame()
206 void Server::clientGone(rfbClientPtr cl) in clientGone() argument
210 delete (ClientData*)cl->clientData; in clientGone()
211 cl->clientData = nullptr; in clientGone()
225 cl->clientData = in newClient()
227 cl->clientGoneHook = clientGone; in newClient()
[all …]
/openbmc/linux/include/linux/
H A Dintel-ish-client-if.h70 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);
98 int ishtp_cl_flush_queues(struct ishtp_cl *cl);
100 bool ishtp_cl_tx_empty(struct ishtp_cl *cl);
102 void *ishtp_get_client_data(struct ishtp_cl *cl);
105 void ishtp_set_tx_ring_size(struct ishtp_cl *cl, int size);
[all …]

12345678910>>...17