Lines Matching refs:spad
1154 struct tool_spad *spad = filep->private_data; in tool_spad_read() local
1158 if (!spad->tc->ntb->ops->spad_read) in tool_spad_read()
1162 ntb_spad_read(spad->tc->ntb, spad->sidx)); in tool_spad_read()
1170 struct tool_spad *spad = filep->private_data; in tool_spad_write() local
1174 if (!spad->tc->ntb->ops->spad_write) { in tool_spad_write()
1175 dev_dbg(&spad->tc->ntb->dev, "no spad write fn\n"); in tool_spad_write()
1183 ret = ntb_spad_write(spad->tc->ntb, spad->sidx, val); in tool_spad_write()
1195 struct tool_spad *spad = filep->private_data; in tool_peer_spad_read() local
1199 if (!spad->tc->ntb->ops->peer_spad_read) in tool_peer_spad_read()
1203 ntb_peer_spad_read(spad->tc->ntb, spad->pidx, spad->sidx)); in tool_peer_spad_read()
1211 struct tool_spad *spad = filep->private_data; in tool_peer_spad_write() local
1215 if (!spad->tc->ntb->ops->peer_spad_write) { in tool_peer_spad_write()
1216 dev_dbg(&spad->tc->ntb->dev, "no spad write fn\n"); in tool_peer_spad_write()
1224 ret = ntb_peer_spad_write(spad->tc->ntb, spad->pidx, spad->sidx, val); in tool_peer_spad_write()