Lines Matching full:mailbox

67 	struct mthca_mailbox *mailbox;  in find_mgm()  local
72 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in find_mgm()
73 if (IS_ERR(mailbox)) in find_mgm()
75 mgid = mailbox->buf; in find_mgm()
79 err = mthca_MGID_HASH(dev, mailbox, hash); in find_mgm()
116 mthca_free_mailbox(dev, mailbox); in find_mgm()
123 struct mthca_mailbox *mailbox; in mthca_multicast_attach() local
131 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_multicast_attach()
132 if (IS_ERR(mailbox)) in mthca_multicast_attach()
133 return PTR_ERR(mailbox); in mthca_multicast_attach()
134 mgm = mailbox->buf; in mthca_multicast_attach()
138 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_attach()
155 err = mthca_READ_MGM(dev, index, mailbox); in mthca_multicast_attach()
181 err = mthca_WRITE_MGM(dev, index, mailbox); in mthca_multicast_attach()
191 err = mthca_READ_MGM(dev, prev, mailbox); in mthca_multicast_attach()
199 err = mthca_WRITE_MGM(dev, prev, mailbox); in mthca_multicast_attach()
210 mthca_free_mailbox(dev, mailbox); in mthca_multicast_attach()
217 struct mthca_mailbox *mailbox; in mthca_multicast_detach() local
224 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_multicast_detach()
225 if (IS_ERR(mailbox)) in mthca_multicast_detach()
226 return PTR_ERR(mailbox); in mthca_multicast_detach()
227 mgm = mailbox->buf; in mthca_multicast_detach()
231 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_detach()
257 err = mthca_WRITE_MGM(dev, index, mailbox); in mthca_multicast_detach()
271 mailbox); in mthca_multicast_detach()
279 err = mthca_WRITE_MGM(dev, index, mailbox); in mthca_multicast_detach()
291 err = mthca_READ_MGM(dev, prev, mailbox); in mthca_multicast_detach()
299 err = mthca_WRITE_MGM(dev, prev, mailbox); in mthca_multicast_detach()
311 mthca_free_mailbox(dev, mailbox); in mthca_multicast_detach()