Lines Matching refs:spad
1159 struct tool_spad *spad = filep->private_data; in tool_spad_read() local
1163 if (!spad->tc->ntb->ops->spad_read) in tool_spad_read()
1167 ntb_spad_read(spad->tc->ntb, spad->sidx)); in tool_spad_read()
1175 struct tool_spad *spad = filep->private_data; in tool_spad_write() local
1179 if (!spad->tc->ntb->ops->spad_write) { in tool_spad_write()
1180 dev_dbg(&spad->tc->ntb->dev, "no spad write fn\n"); in tool_spad_write()
1188 ret = ntb_spad_write(spad->tc->ntb, spad->sidx, val); in tool_spad_write()
1200 struct tool_spad *spad = filep->private_data; in tool_peer_spad_read() local
1204 if (!spad->tc->ntb->ops->peer_spad_read) in tool_peer_spad_read()
1208 ntb_peer_spad_read(spad->tc->ntb, spad->pidx, spad->sidx)); in tool_peer_spad_read()
1216 struct tool_spad *spad = filep->private_data; in tool_peer_spad_write() local
1220 if (!spad->tc->ntb->ops->peer_spad_write) { in tool_peer_spad_write()
1221 dev_dbg(&spad->tc->ntb->dev, "no spad write fn\n"); in tool_peer_spad_write()
1229 ret = ntb_peer_spad_write(spad->tc->ntb, spad->pidx, spad->sidx, val); in tool_peer_spad_write()