/drivers/net/ethernet/marvell/octeontx2/af/ |
D | mbox.c | 29 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() 251 tx_hdr->num_msgs = mdev->num_msgs; in otx2_mbox_msg_send_data() 252 rx_hdr->num_msgs = 0; in otx2_mbox_msg_send_data() 254 trace_otx2_msg_send(mbox->pdev, tx_hdr->num_msgs, tx_hdr->msg_size); in otx2_mbox_msg_send_data() 320 mdev->num_msgs = 0; in otx2_mbox_alloc_msg_rsp() 321 mdev->num_msgs++; in otx2_mbox_alloc_msg_rsp() 349 if (mdev->num_msgs != mdev->msgs_acked) in otx2_mbox_get_rsp() [all …]
|
D | rvu_trace.h | 36 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)
|
D | rvu.c | 2144 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() 2515 if (hdr->num_msgs) { in rvu_queue_work() 2516 mw->mbox_wrk[i].num_msgs = hdr->num_msgs; in rvu_queue_work() 2517 hdr->num_msgs = 0; in rvu_queue_work() 2523 if (hdr->num_msgs) { in rvu_queue_work() 2524 mw->mbox_wrk_up[i].up_num_msgs = hdr->num_msgs; in rvu_queue_work() 2525 hdr->num_msgs = 0; in rvu_queue_work()
|
D | mbox.h | 59 u16 num_msgs; /* No of msgs sent or waiting for response */ member 80 u16 num_msgs; /* No of msgs embedded */ member
|
D | rvu.h | 88 int num_msgs; member
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_vf.c | 92 u16 num_msgs; in otx2vf_vfaf_mbox_handler() local 98 num_msgs = rsp_hdr->num_msgs; in otx2vf_vfaf_mbox_handler() 100 if (num_msgs == 0) in otx2vf_vfaf_mbox_handler() 105 for (id = 0; id < num_msgs; id++) { in otx2vf_vfaf_mbox_handler() 109 if (mdev->msgs_acked == (af_mbox->num_msgs - 1)) in otx2vf_vfaf_mbox_handler() 158 u16 num_msgs; in otx2vf_vfaf_mbox_up_handler() local 166 num_msgs = rsp_hdr->num_msgs; in otx2vf_vfaf_mbox_up_handler() 168 if (num_msgs == 0) in otx2vf_vfaf_mbox_up_handler() 173 for (id = 0; id < num_msgs; id++) { in otx2vf_vfaf_mbox_up_handler() 208 if (hdr->num_msgs) in otx2vf_vfaf_mbox_intr_handler() [all …]
|
D | otx2_pf.c | 318 if (hdr->num_msgs) { in otx2_queue_vf_work() 319 mw[i].num_msgs = hdr->num_msgs; in otx2_queue_vf_work() 320 hdr->num_msgs = 0; in otx2_queue_vf_work() 327 if (hdr->num_msgs) { in otx2_queue_vf_work() 328 mw[i].up_num_msgs = hdr->num_msgs; in otx2_queue_vf_work() 329 hdr->num_msgs = 0; in otx2_queue_vf_work() 356 int dir, int vf, int num_msgs) in otx2_forward_vf_mbox_msgs() argument 385 dst_mdev->num_msgs = num_msgs; in otx2_forward_vf_mbox_msgs() 406 req_hdr->num_msgs = num_msgs; in otx2_forward_vf_mbox_msgs() 416 req_hdr->num_msgs = num_msgs; in otx2_forward_vf_mbox_msgs() [all …]
|
/drivers/i2c/busses/ |
D | i2c-bcm2835.c | 67 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()
|
D | i2c-mv64xxx.c | 122 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 …]
|
D | i2c-designware-master.c | 285 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()
|
D | i2c-cros-ec-tunnel.c | 85 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()
|
D | i2c-mpc.c | 97 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()
|
D | i2c-nomadik.c | 662 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/ |
D | qsfp.c | 178 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/apm/xgene/ |
D | xgene_enet_ring2.c | 174 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()
|
D | xgene_enet_hw.c | 187 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/ |
D | otx2_cptpf_mbox.c | 349 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()
|
D | otx2_cptvf_mbox.c | 154 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/intel/qat/qat_common/ |
D | adf_transport.c | 218 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/ |
D | aldebaran_ppt.c | 1468 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()
|
D | smu_v13_0_6_ppt.c | 1698 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()
|
D | smu_v13_0_0_ppt.c | 2224 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()
|
/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | arcturus_ppt.c | 2061 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()
|
D | navi10_ppt.c | 2970 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()
|
/drivers/media/dvb-frontends/drx39xyj/ |
D | drxj.c | 1316 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()
|