Searched refs:sndev (Results 1 – 2 of 2) sorted by relevance
134 static int switchtec_ntb_part_op(struct switchtec_ntb *sndev, in switchtec_ntb_part_op() argument180 dev_err(&sndev->stdev->dev, in switchtec_ntb_part_op()191 static int switchtec_ntb_send_msg(struct switchtec_ntb *sndev, int idx, in switchtec_ntb_send_msg() argument194 if (idx < 0 || idx >= ARRAY_SIZE(sndev->mmio_peer_dbmsg->omsg)) in switchtec_ntb_send_msg()197 iowrite32(val, &sndev->mmio_peer_dbmsg->omsg[idx].msg); in switchtec_ntb_send_msg()204 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_mw_count() local205 int nr_direct_mw = sndev->peer_nr_direct_mw; in switchtec_ntb_mw_count()206 int nr_lut_mw = sndev->peer_nr_lut_mw - sndev->nr_rsvd_luts; in switchtec_ntb_mw_count()217 static int lut_index(struct switchtec_ntb *sndev, int mw_idx) in lut_index() argument219 return mw_idx - sndev->nr_direct_mw + sndev->nr_rsvd_luts; in lut_index()[all …]
383 struct switchtec_ntb *sndev; member