• Home
  • Raw
  • Download

Lines Matching refs:mailbox

118 	struct mlx4_cmd_mailbox *mailbox;  in mlx4_set_port_mac_table()  local
122 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_set_port_mac_table()
123 if (IS_ERR(mailbox)) in mlx4_set_port_mac_table()
124 return PTR_ERR(mailbox); in mlx4_set_port_mac_table()
126 memcpy(mailbox->buf, entries, MLX4_MAC_TABLE_SIZE); in mlx4_set_port_mac_table()
130 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_set_port_mac_table()
133 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_set_port_mac_table()
334 struct mlx4_cmd_mailbox *mailbox; in mlx4_set_port_vlan_table() local
338 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_set_port_vlan_table()
339 if (IS_ERR(mailbox)) in mlx4_set_port_vlan_table()
340 return PTR_ERR(mailbox); in mlx4_set_port_vlan_table()
342 memcpy(mailbox->buf, entries, MLX4_VLAN_TABLE_SIZE); in mlx4_set_port_vlan_table()
344 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_set_port_vlan_table()
347 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_set_port_vlan_table()
606 int port, struct mlx4_cmd_mailbox *mailbox) in mlx4_reset_roce_port_gids() argument
616 memset(mailbox->buf, 0, MLX4_MAILBOX_SIZE); in mlx4_reset_roce_port_gids()
625 gid_entry_mbox = (struct mlx4_roce_gid_entry *)mailbox->buf; in mlx4_reset_roce_port_gids()
631 err = mlx4_cmd(dev, mailbox->dma, in mlx4_reset_roce_port_gids()
643 struct mlx4_cmd_mailbox *mailbox; in mlx4_reset_roce_gids() local
664 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_reset_roce_gids()
665 if (IS_ERR(mailbox)) in mlx4_reset_roce_gids()
672 err = mlx4_reset_roce_port_gids(dev, slave, i + 1, mailbox); in mlx4_reset_roce_gids()
679 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_reset_roce_gids()
923 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT() local
929 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT()
930 if (IS_ERR(mailbox)) in mlx4_SET_PORT()
931 return PTR_ERR(mailbox); in mlx4_SET_PORT()
933 ((__be32 *) mailbox->buf)[1] = dev->caps.ib_port_def_cap[port]; in mlx4_SET_PORT()
937 ((__be16 *) mailbox->buf)[20] = cpu_to_be16(pkey_tbl_sz); in mlx4_SET_PORT()
942 ((__be32 *) mailbox->buf)[0] = cpu_to_be32( in mlx4_SET_PORT()
948 err = mlx4_cmd(dev, mailbox->dma, port, 0, MLX4_CMD_SET_PORT, in mlx4_SET_PORT()
954 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_PORT()
961 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT_general() local
966 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT_general()
967 if (IS_ERR(mailbox)) in mlx4_SET_PORT_general()
968 return PTR_ERR(mailbox); in mlx4_SET_PORT_general()
969 context = mailbox->buf; in mlx4_SET_PORT_general()
978 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_SET_PORT_general()
981 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_PORT_general()
989 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT_qpn_calc() local
999 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT_qpn_calc()
1000 if (IS_ERR(mailbox)) in mlx4_SET_PORT_qpn_calc()
1001 return PTR_ERR(mailbox); in mlx4_SET_PORT_qpn_calc()
1002 context = mailbox->buf; in mlx4_SET_PORT_qpn_calc()
1015 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_SET_PORT_qpn_calc()
1018 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_PORT_qpn_calc()
1025 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT_PRIO2TC() local
1031 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT_PRIO2TC()
1032 if (IS_ERR(mailbox)) in mlx4_SET_PORT_PRIO2TC()
1033 return PTR_ERR(mailbox); in mlx4_SET_PORT_PRIO2TC()
1034 context = mailbox->buf; in mlx4_SET_PORT_PRIO2TC()
1039 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_SET_PORT_PRIO2TC()
1042 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_PORT_PRIO2TC()
1050 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT_SCHEDULER() local
1056 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT_SCHEDULER()
1057 if (IS_ERR(mailbox)) in mlx4_SET_PORT_SCHEDULER()
1058 return PTR_ERR(mailbox); in mlx4_SET_PORT_SCHEDULER()
1059 context = mailbox->buf; in mlx4_SET_PORT_SCHEDULER()
1086 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_SET_PORT_SCHEDULER()
1089 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_PORT_SCHEDULER()
1113 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT_VXLAN() local
1116 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT_VXLAN()
1117 if (IS_ERR(mailbox)) in mlx4_SET_PORT_VXLAN()
1118 return PTR_ERR(mailbox); in mlx4_SET_PORT_VXLAN()
1119 context = mailbox->buf; in mlx4_SET_PORT_VXLAN()
1128 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_SET_PORT_VXLAN()
1131 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_PORT_VXLAN()