Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.c2144 if (mw->mbox_wrk[devid].num_msgs == 0) in __rvu_mbox_handler()
2149 for (id = 0; id < mw->mbox_wrk[devid].num_msgs; id++) { in __rvu_mbox_handler()
2182 mw->mbox_wrk[devid].num_msgs = 0; in __rvu_mbox_handler()
2507 if (hdr->num_msgs) { in rvu_queue_work()
2508 mw->mbox_wrk[i].num_msgs = hdr->num_msgs; in rvu_queue_work()
2509 hdr->num_msgs = 0; in rvu_queue_work()
2515 if (hdr->num_msgs) { in rvu_queue_work()
2516 mw->mbox_wrk_up[i].up_num_msgs = hdr->num_msgs; in rvu_queue_work()
2517 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.h88 int num_msgs; member
/linux-6.6.21/tools/testing/selftests/net/
Dudpgso_bench_tx.c582 static void print_audit_report(unsigned long num_msgs, unsigned long num_sends) in print_audit_report() argument
595 ((num_msgs * cfg_payload_len) >> 10) / tdelta, in print_audit_report()
597 num_msgs, num_msgs * 1000 / tdelta); in print_audit_report()
623 static void print_report(unsigned long num_msgs, unsigned long num_sends) in print_report() argument
628 (num_msgs * cfg_payload_len) >> 20, in print_report()
629 num_sends, num_msgs); in print_report()
632 total_num_msgs += num_msgs; in print_report()
639 unsigned long num_msgs, num_sends; in main() local
683 num_msgs = num_sends = 0; in main()
700 num_msgs++; in main()
[all …]
/linux-6.6.21/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-designware-master.c285 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
301 dev->msgs_num = num_msgs; in amd_i2c_dw_xfer_quirk()
306 for (msg_wrt_idx = 0; msg_wrt_idx < num_msgs; msg_wrt_idx++) { in amd_i2c_dw_xfer_quirk()
318 if (msg_wrt_idx == num_msgs - 1 && msg_itr_lmt == 1) in amd_i2c_dw_xfer_quirk()
377 int num_msgs) in txgbe_i2c_dw_xfer_quirk() argument
385 dev->msgs_num = num_msgs; in txgbe_i2c_dw_xfer_quirk()
389 for (msg_idx = 0; msg_idx < num_msgs; msg_idx++) { in txgbe_i2c_dw_xfer_quirk()
394 if (msg_idx == num_msgs - 1 && data_idx == buf_len - 1) in txgbe_i2c_dw_xfer_quirk()
417 return num_msgs; in txgbe_i2c_dw_xfer_quirk()
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-mpc.c97 int num_msgs; member
600 if (i2c->curr_msg == i2c->num_msgs) { in mpc_i2c_do_action()
736 i2c->num_msgs = num; in mpc_xfer()
742 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()
/linux-6.6.21/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()
/linux-6.6.21/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 …]
/linux-6.6.21/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()
/linux-6.6.21/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_mbox.c349 for (i = 0; i < req_hdr->num_msgs; i++) { in otx2_cptpf_vfpf_mbox_handler()
371 if (mdev->num_msgs) in otx2_cptpf_vfpf_mbox_handler()
390 if (hdr->num_msgs) in otx2_cptpf_afpf_mbox_intr()
397 if (hdr->num_msgs) in otx2_cptpf_afpf_mbox_intr()
523 for (i = 0; i < rsp_hdr->num_msgs; i++) { in otx2_cptpf_afpf_mbox_handler()
600 for (i = 0; i < rsp_hdr->num_msgs; i++) { in otx2_cptpf_afpf_mbox_up_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()
/linux-6.6.21/drivers/crypto/intel/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()
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/smu13/
Daldebaran_ppt.c1468 struct i2c_msg *msg, int num_msgs) in aldebaran_i2c_xfer() argument
1491 for (c = i = 0; i < num_msgs; i++) { in aldebaran_i2c_xfer()
1516 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in aldebaran_i2c_xfer()
1527 for (c = i = 0; i < num_msgs; i++) { in aldebaran_i2c_xfer()
1538 r = num_msgs; in aldebaran_i2c_xfer()
Dsmu_v13_0_6_ppt.c1698 struct i2c_msg *msg, int num_msgs) in smu_v13_0_6_i2c_xfer() argument
1721 for (c = i = 0; i < num_msgs; i++) { in smu_v13_0_6_i2c_xfer()
1746 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in smu_v13_0_6_i2c_xfer()
1757 for (c = i = 0; i < num_msgs; i++) { in smu_v13_0_6_i2c_xfer()
1768 r = num_msgs; in smu_v13_0_6_i2c_xfer()
Dsmu_v13_0_0_ppt.c2224 struct i2c_msg *msg, int num_msgs) in smu_v13_0_0_i2c_xfer() argument
2247 for (c = i = 0; i < num_msgs; i++) { in smu_v13_0_0_i2c_xfer()
2272 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in smu_v13_0_0_i2c_xfer()
2283 for (c = i = 0; i < num_msgs; i++) { in smu_v13_0_0_i2c_xfer()
2294 r = num_msgs; in smu_v13_0_0_i2c_xfer()
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/smu11/
Darcturus_ppt.c2061 struct i2c_msg *msg, int num_msgs) in arcturus_i2c_xfer() argument
2084 for (c = i = 0; i < num_msgs; i++) { in arcturus_i2c_xfer()
2109 ((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.c2970 struct i2c_msg *msg, int num_msgs) in navi10_i2c_xfer() argument
2993 for (c = i = 0; i < num_msgs; i++) { in navi10_i2c_xfer()
3018 ((i == num_msgs - 1) || (msg[i].flags & I2C_M_STOP))) { in navi10_i2c_xfer()
3029 for (c = i = 0; i < num_msgs; i++) { in navi10_i2c_xfer()
3040 r = num_msgs; in navi10_i2c_xfer()

12