Searched refs:sndev (Results 1 – 2 of 2) sorted by relevance
98 static int switchtec_ntb_part_op(struct switchtec_ntb *sndev, in switchtec_ntb_part_op() argument144 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() argument158 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() local169 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() argument183 return mw_idx - sndev->nr_direct_mw + sndev->nr_rsvd_luts; in lut_index()[all …]
513 struct switchtec_ntb *sndev; member