Home
last modified time | relevance | path

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

/drivers/net/ethernet/marvell/octeontx2/af/
Dmbox.c29 tx_hdr->num_msgs = 0; in __otx2_mbox_reset()
31 rx_hdr->num_msgs = 0; in __otx2_mbox_reset()
194 if (mdev->num_msgs == mdev->msgs_acked) in otx2_mbox_wait_for_rsp()
209 if (mdev->num_msgs == mdev->msgs_acked) in otx2_mbox_busy_poll_for_rsp()
250 tx_hdr->num_msgs = mdev->num_msgs; in otx2_mbox_msg_send()
251 rx_hdr->num_msgs = 0; in otx2_mbox_msg_send()
253 trace_otx2_msg_send(mbox->pdev, tx_hdr->num_msgs, tx_hdr->msg_size); in otx2_mbox_msg_send()
281 mdev->num_msgs = 0; in otx2_mbox_alloc_msg_rsp()
282 mdev->num_msgs++; in otx2_mbox_alloc_msg_rsp()
310 if (mdev->num_msgs != mdev->msgs_acked) in otx2_mbox_get_rsp()
[all …]
Drvu_trace.h36 TP_PROTO(const struct pci_dev *pdev, u16 num_msgs, u64 msg_size),
37 TP_ARGS(pdev, num_msgs, msg_size),
39 __field(u16, num_msgs)
43 __entry->num_msgs = num_msgs;
47 __entry->num_msgs, __entry->msg_size)
Drvu.c2058 if (mw->mbox_wrk[devid].num_msgs == 0) in __rvu_mbox_handler()
2063 for (id = 0; id < mw->mbox_wrk[devid].num_msgs; id++) { in __rvu_mbox_handler()
2096 mw->mbox_wrk[devid].num_msgs = 0; in __rvu_mbox_handler()
2422 if (hdr->num_msgs) { in rvu_queue_work()
2423 mw->mbox_wrk[i].num_msgs = hdr->num_msgs; in rvu_queue_work()
2424 hdr->num_msgs = 0; in rvu_queue_work()
2430 if (hdr->num_msgs) { in rvu_queue_work()
2431 mw->mbox_wrk_up[i].up_num_msgs = hdr->num_msgs; in rvu_queue_work()
2432 hdr->num_msgs = 0; in rvu_queue_work()
Dmbox.h56 u16 num_msgs; /* No of msgs sent or waiting for response */ member
77 u16 num_msgs; /* No of msgs embedded */ member
Drvu.h80 int num_msgs; member
/drivers/i2c/busses/
Di2c-bcm2835.c67 int num_msgs; member
240 bool last_msg = (i2c_dev->num_msgs == 1); in bcm2835_i2c_start_transfer()
242 if (!i2c_dev->num_msgs) in bcm2835_i2c_start_transfer()
245 i2c_dev->num_msgs--; in bcm2835_i2c_start_transfer()
265 i2c_dev->num_msgs = 0; in bcm2835_i2c_finish_transfer()
316 if (i2c_dev->num_msgs && !i2c_dev->msg_buf_remaining) { in bcm2835_i2c_isr()
360 i2c_dev->num_msgs = num; in bcm2835_i2c_xfer()
Di2c-mv64xxx.c122 int num_msgs; member
363 BUG_ON(drv_data->num_msgs == 0); in mv64xxx_i2c_do_action()
366 drv_data->num_msgs--; in mv64xxx_i2c_do_action()
377 drv_data->send_stop = drv_data->num_msgs == 1; in mv64xxx_i2c_do_action()
481 if (drv_data->num_msgs == 1 && drv_data->msgs[0].flags & I2C_M_RD) { in mv64xxx_i2c_intr_offload()
484 drv_data->num_msgs--; in mv64xxx_i2c_intr_offload()
490 else if (drv_data->num_msgs == 2 && in mv64xxx_i2c_intr_offload()
495 drv_data->num_msgs -= 2; in mv64xxx_i2c_intr_offload()
645 int num = drv_data->num_msgs; in mv64xxx_i2c_offload_xfer()
710 int num = drv_data->num_msgs; in mv64xxx_i2c_can_offload()
[all …]
Di2c-cros-ec-tunnel.c85 params->num_msgs = num; in ec_i2c_construct_message()
158 if (resp->num_msgs > *num) in ec_i2c_parse_response()
160 *num = resp->num_msgs; in ec_i2c_parse_response()
Di2c-designware-master.c284 static int amd_i2c_dw_xfer_quirk(struct i2c_adapter *adap, struct i2c_msg *msgs, int num_msgs) in amd_i2c_dw_xfer_quirk() argument
300 dev->msgs_num = num_msgs; in amd_i2c_dw_xfer_quirk()
305 for (msg_wrt_idx = 0; msg_wrt_idx < num_msgs; msg_wrt_idx++) { in amd_i2c_dw_xfer_quirk()
317 if (msg_wrt_idx == num_msgs - 1 && msg_itr_lmt == 1) in amd_i2c_dw_xfer_quirk()
Di2c-mpc.c96 int num_msgs; member
598 if (i2c->curr_msg == i2c->num_msgs) { in mpc_i2c_do_action()
734 i2c->num_msgs = num; in mpc_xfer()
740 i2c->num_msgs = 0; in mpc_xfer()
Di2c-nomadik.c662 struct i2c_msg msgs[], int num_msgs) in nmk_i2c_xfer() argument
676 for (i = 0; i < num_msgs; i++) { in nmk_i2c_xfer()
680 dev->stop = (i < (num_msgs - 1)) ? 0 : 1; in nmk_i2c_xfer()
697 return num_msgs; in nmk_i2c_xfer()
/drivers/infiniband/hw/hfi1/
Dqsfp.c178 int num_msgs; in i2c_bus_write() local
184 num_msgs = 1; in i2c_bus_write()
194 num_msgs = 2; in i2c_bus_write()
212 ret = i2c_transfer(&i2c->adapter, msgs, num_msgs); in i2c_bus_write()
213 if (ret != num_msgs) { in i2c_bus_write()
226 int num_msgs; in i2c_bus_read() local
232 num_msgs = 1; in i2c_bus_read()
242 num_msgs = 2; in i2c_bus_read()
260 ret = i2c_transfer(&bus->adapter, msgs, num_msgs); in i2c_bus_read()
261 if (ret != num_msgs) { in i2c_bus_read()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_vf.c99 if (af_mbox->num_msgs == 0) in otx2vf_vfaf_mbox_handler()
103 for (id = 0; id < af_mbox->num_msgs; id++) { in otx2vf_vfaf_mbox_handler()
107 if (mdev->msgs_acked == (af_mbox->num_msgs - 1)) in otx2vf_vfaf_mbox_handler()
198 if (hdr->num_msgs) { in otx2vf_vfaf_mbox_intr_handler()
199 vf->mbox.num_msgs = hdr->num_msgs; in otx2vf_vfaf_mbox_intr_handler()
200 hdr->num_msgs = 0; in otx2vf_vfaf_mbox_intr_handler()
211 if (hdr->num_msgs) { in otx2vf_vfaf_mbox_intr_handler()
212 vf->mbox.up_num_msgs = hdr->num_msgs; in otx2vf_vfaf_mbox_intr_handler()
213 hdr->num_msgs = 0; in otx2vf_vfaf_mbox_intr_handler()
Dotx2_pf.c311 if (hdr->num_msgs) { in otx2_queue_work()
312 mw[i].num_msgs = hdr->num_msgs; in otx2_queue_work()
313 hdr->num_msgs = 0; in otx2_queue_work()
327 if (hdr->num_msgs) { in otx2_queue_work()
328 mw[i].up_num_msgs = hdr->num_msgs; in otx2_queue_work()
329 hdr->num_msgs = 0; in otx2_queue_work()
359 int dir, int vf, int num_msgs) in otx2_forward_vf_mbox_msgs() argument
388 dst_mdev->num_msgs = num_msgs; in otx2_forward_vf_mbox_msgs()
409 req_hdr->num_msgs = num_msgs; in otx2_forward_vf_mbox_msgs()
419 req_hdr->num_msgs = num_msgs; in otx2_forward_vf_mbox_msgs()
[all …]
Dotx2_common.h165 int num_msgs; /* mbox number of messages */ member
/drivers/net/ethernet/apm/xgene/
Dxgene_enet_ring2.c174 u32 ring_state, num_msgs; in xgene_enet_ring_len() local
177 num_msgs = GET_VAL(X2_NUMMSGSINQ, ring_state); in xgene_enet_ring_len()
179 return num_msgs; in xgene_enet_ring_len()
Dxgene_enet_hw.c187 u32 ring_state, num_msgs; in xgene_enet_ring_len() local
190 num_msgs = GET_VAL(NUMMSGSINQ, ring_state); in xgene_enet_ring_len()
192 return num_msgs; in xgene_enet_ring_len()
/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_mbox.c191 for (i = 0; i < req_hdr->num_msgs; i++) { in otx2_cptpf_vfpf_mbox_handler()
209 if (mdev->num_msgs) in otx2_cptpf_vfpf_mbox_handler()
341 for (i = 0; i < rsp_hdr->num_msgs; i++) { in otx2_cptpf_afpf_mbox_handler()
Dotx2_cptvf_mbox.c154 if (rsp_hdr->num_msgs == 0) in otx2_cptvf_pfvf_mbox_handler()
158 for (i = 0; i < rsp_hdr->num_msgs; i++) { in otx2_cptvf_pfvf_mbox_handler()
/drivers/crypto/qat/qat_common/
Dadf_transport.c218 u32 bank_num, u32 num_msgs, in adf_create_ring() argument
240 if (ADF_MAX_INFLIGHTS(adf_verify_ring_size(msg_size, num_msgs), in adf_create_ring()
272 ring->ring_size = adf_verify_ring_size(msg_size, num_msgs); in adf_create_ring()
/drivers/gpu/drm/amd/pm/swsmu/smu13/
Daldebaran_ppt.c1468 struct i2c_msg *msg, int num_msgs) in aldebaran_i2c_xfer() argument
1486 for (c = i = 0; i < num_msgs; i++) { in aldebaran_i2c_xfer()
1511 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in aldebaran_i2c_xfer()
1523 for (c = i = 0; i < num_msgs; i++) { in aldebaran_i2c_xfer()
1534 r = num_msgs; in aldebaran_i2c_xfer()
/drivers/gpu/drm/amd/pm/swsmu/smu11/
Darcturus_ppt.c2076 struct i2c_msg *msg, int num_msgs) in arcturus_i2c_xfer() argument
2094 for (c = i = 0; i < num_msgs; i++) { in arcturus_i2c_xfer()
2119 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in arcturus_i2c_xfer()
2131 for (c = i = 0; i < num_msgs; i++) { in arcturus_i2c_xfer()
2142 r = num_msgs; in arcturus_i2c_xfer()
Dnavi10_ppt.c2787 struct i2c_msg *msg, int num_msgs) in navi10_i2c_xfer() argument
2805 for (c = i = 0; i < num_msgs; i++) { in navi10_i2c_xfer()
2830 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in navi10_i2c_xfer()
2842 for (c = i = 0; i < num_msgs; i++) { in navi10_i2c_xfer()
2853 r = num_msgs; in navi10_i2c_xfer()
Dsienna_cichlid_ppt.c3643 struct i2c_msg *msg, int num_msgs) in sienna_cichlid_i2c_xfer() argument
3661 for (c = i = 0; i < num_msgs; i++) { in sienna_cichlid_i2c_xfer()
3686 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in sienna_cichlid_i2c_xfer()
3698 for (c = i = 0; i < num_msgs; i++) { in sienna_cichlid_i2c_xfer()
3709 r = num_msgs; in sienna_cichlid_i2c_xfer()
/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.c1316 unsigned int num_msgs; in drxbsp_i2c_write_read() local
1325 num_msgs = 1; in drxbsp_i2c_write_read()
1333 num_msgs = 1; in drxbsp_i2c_write_read()
1345 num_msgs = 2; in drxbsp_i2c_write_read()
1352 if (i2c_transfer(state->i2c, msg, num_msgs) != num_msgs) { in drxbsp_i2c_write_read()
1374 num_msgs = 2; in drxbsp_i2c_write_read()