Home
last modified time | relevance | path

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

12

/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.c2136 if (mw->mbox_wrk[devid].num_msgs == 0) in __rvu_mbox_handler()
2141 for (id = 0; id < mw->mbox_wrk[devid].num_msgs; id++) { in __rvu_mbox_handler()
2174 mw->mbox_wrk[devid].num_msgs = 0; in __rvu_mbox_handler()
2499 if (hdr->num_msgs) { in rvu_queue_work()
2500 mw->mbox_wrk[i].num_msgs = hdr->num_msgs; in rvu_queue_work()
2501 hdr->num_msgs = 0; in rvu_queue_work()
2507 if (hdr->num_msgs) { in rvu_queue_work()
2508 mw->mbox_wrk_up[i].up_num_msgs = hdr->num_msgs; in rvu_queue_work()
2509 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.h86 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
599 if (i2c->curr_msg == i2c->num_msgs) { in mpc_i2c_do_action()
735 i2c->num_msgs = num; in mpc_xfer()
741 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.c97 if (af_mbox->num_msgs == 0) in otx2vf_vfaf_mbox_handler()
101 for (id = 0; id < af_mbox->num_msgs; id++) { in otx2vf_vfaf_mbox_handler()
105 if (mdev->msgs_acked == (af_mbox->num_msgs - 1)) in otx2vf_vfaf_mbox_handler()
196 if (hdr->num_msgs) { in otx2vf_vfaf_mbox_intr_handler()
197 vf->mbox.num_msgs = hdr->num_msgs; in otx2vf_vfaf_mbox_intr_handler()
198 hdr->num_msgs = 0; in otx2vf_vfaf_mbox_intr_handler()
209 if (hdr->num_msgs) { in otx2vf_vfaf_mbox_intr_handler()
210 vf->mbox.up_num_msgs = hdr->num_msgs; in otx2vf_vfaf_mbox_intr_handler()
211 hdr->num_msgs = 0; in otx2vf_vfaf_mbox_intr_handler()
Dotx2_pf.c320 if (hdr->num_msgs) { in otx2_queue_work()
321 mw[i].num_msgs = hdr->num_msgs; in otx2_queue_work()
322 hdr->num_msgs = 0; in otx2_queue_work()
336 if (hdr->num_msgs) { in otx2_queue_work()
337 mw[i].up_num_msgs = hdr->num_msgs; in otx2_queue_work()
338 hdr->num_msgs = 0; in otx2_queue_work()
368 int dir, int vf, int num_msgs) in otx2_forward_vf_mbox_msgs() argument
397 dst_mdev->num_msgs = num_msgs; in otx2_forward_vf_mbox_msgs()
418 req_hdr->num_msgs = num_msgs; in otx2_forward_vf_mbox_msgs()
428 req_hdr->num_msgs = num_msgs; in otx2_forward_vf_mbox_msgs()
[all …]
Dotx2_common.h180 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.c198 for (i = 0; i < req_hdr->num_msgs; i++) { in otx2_cptpf_vfpf_mbox_handler()
220 if (mdev->num_msgs) in otx2_cptpf_vfpf_mbox_handler()
352 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/
Dsmu_v13_0_0_ppt.c1705 struct i2c_msg *msg, int num_msgs) in smu_v13_0_0_i2c_xfer() argument
1728 for (c = i = 0; i < num_msgs; i++) { in smu_v13_0_0_i2c_xfer()
1753 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in smu_v13_0_0_i2c_xfer()
1765 for (c = i = 0; i < num_msgs; i++) { in smu_v13_0_0_i2c_xfer()
1776 r = num_msgs; in smu_v13_0_0_i2c_xfer()
Daldebaran_ppt.c1475 struct i2c_msg *msg, int num_msgs) in aldebaran_i2c_xfer() argument
1498 for (c = i = 0; i < num_msgs; i++) { in aldebaran_i2c_xfer()
1523 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in aldebaran_i2c_xfer()
1535 for (c = i = 0; i < num_msgs; i++) { in aldebaran_i2c_xfer()
1546 r = num_msgs; in aldebaran_i2c_xfer()
/drivers/gpu/drm/amd/pm/swsmu/smu11/
Darcturus_ppt.c2060 struct i2c_msg *msg, int num_msgs) in arcturus_i2c_xfer() argument
2083 for (c = i = 0; i < num_msgs; i++) { in arcturus_i2c_xfer()
2108 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in arcturus_i2c_xfer()
2120 for (c = i = 0; i < num_msgs; i++) { in arcturus_i2c_xfer()
2131 r = num_msgs; in arcturus_i2c_xfer()
Dnavi10_ppt.c2961 struct i2c_msg *msg, int num_msgs) in navi10_i2c_xfer() argument
2984 for (c = i = 0; i < num_msgs; i++) { in navi10_i2c_xfer()
3009 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in navi10_i2c_xfer()
3021 for (c = i = 0; i < num_msgs; i++) { in navi10_i2c_xfer()
3032 r = num_msgs; in navi10_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()

12