• Home
  • Raw
  • Download

Lines Matching refs:mailbox

75 	struct mlx4_cmd_mailbox *mailbox;  in mlx4_set_port_mac_table()  local
79 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_set_port_mac_table()
80 if (IS_ERR(mailbox)) in mlx4_set_port_mac_table()
81 return PTR_ERR(mailbox); in mlx4_set_port_mac_table()
83 memcpy(mailbox->buf, entries, MLX4_MAC_TABLE_SIZE); in mlx4_set_port_mac_table()
86 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_set_port_mac_table()
89 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_set_port_mac_table()
167 struct mlx4_cmd_mailbox *mailbox; in mlx4_set_port_vlan_table() local
171 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_set_port_vlan_table()
172 if (IS_ERR(mailbox)) in mlx4_set_port_vlan_table()
173 return PTR_ERR(mailbox); in mlx4_set_port_vlan_table()
175 memcpy(mailbox->buf, entries, MLX4_VLAN_TABLE_SIZE); in mlx4_set_port_vlan_table()
177 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_set_port_vlan_table()
180 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_set_port_vlan_table()
299 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT() local
303 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT()
304 if (IS_ERR(mailbox)) in mlx4_SET_PORT()
305 return PTR_ERR(mailbox); in mlx4_SET_PORT()
307 memset(mailbox->buf, 0, 256); in mlx4_SET_PORT()
309 ((u8 *) mailbox->buf)[3] = 6; in mlx4_SET_PORT()
310 ((__be16 *) mailbox->buf)[4] = cpu_to_be16(1 << 15); in mlx4_SET_PORT()
311 ((__be16 *) mailbox->buf)[6] = cpu_to_be16(1 << 15); in mlx4_SET_PORT()
313 ((__be32 *) mailbox->buf)[1] = dev->caps.ib_port_def_cap[port]; in mlx4_SET_PORT()
314 err = mlx4_cmd(dev, mailbox->dma, port, is_eth, MLX4_CMD_SET_PORT, in mlx4_SET_PORT()
317 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_PORT()