Home
last modified time | relevance | path

Searched refs:sndev (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/ntb/hw/mscc/
H A Dntb_hw_switchtec.c98 static int switchtec_ntb_part_op(struct switchtec_ntb *sndev, in switchtec_ntb_part_op() argument
144 dev_err(&sndev->stdev->dev, in switchtec_ntb_part_op()
155 static int switchtec_ntb_send_msg(struct switchtec_ntb *sndev, int idx, in switchtec_ntb_send_msg() argument
158 if (idx < 0 || idx >= ARRAY_SIZE(sndev->mmio_peer_dbmsg->omsg)) in switchtec_ntb_send_msg()
161 iowrite32(val, &sndev->mmio_peer_dbmsg->omsg[idx].msg); in switchtec_ntb_send_msg()
168 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_mw_count() local
169 int nr_direct_mw = sndev->peer_nr_direct_mw; in switchtec_ntb_mw_count()
170 int nr_lut_mw = sndev->peer_nr_lut_mw - sndev->nr_rsvd_luts; in switchtec_ntb_mw_count()
181 static int lut_index(struct switchtec_ntb *sndev, int mw_idx) in lut_index() argument
183 return mw_idx - sndev->nr_direct_mw + sndev->nr_rsvd_luts; in lut_index()
[all …]
/linux/include/linux/
H A Dswitchtec.h513 struct switchtec_ntb *sndev; member