Home
last modified time | relevance | path

Searched refs:mailbox (Results 1 – 25 of 63) sorted by relevance

123

/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
HDmlx4_fw_qos.c87 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT_PRIO2TC() local
93 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT_PRIO2TC()
94 if (IS_ERR(mailbox)) in mlx4_SET_PORT_PRIO2TC()
95 return PTR_ERR(mailbox); in mlx4_SET_PORT_PRIO2TC()
97 context = mailbox->buf; in mlx4_SET_PORT_PRIO2TC()
103 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_SET_PORT_PRIO2TC()
106 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_PORT_PRIO2TC()
114 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT_SCHEDULER() local
120 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT_SCHEDULER()
121 if (IS_ERR(mailbox)) in mlx4_SET_PORT_SCHEDULER()
[all …]
HDmlx4_cq.c94 static int mlx4_SW2HW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_CQ() argument
97 return mlx4_cmd(dev, mailbox->dma, cq_num, 0, in mlx4_SW2HW_CQ()
102 static int mlx4_MODIFY_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_MODIFY_CQ() argument
105 return mlx4_cmd(dev, mailbox->dma, cq_num, opmod, MLX4_CMD_MODIFY_CQ, in mlx4_MODIFY_CQ()
109 static int mlx4_HW2SW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_CQ() argument
112 return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, in mlx4_HW2SW_CQ()
113 cq_num, mailbox ? 0 : 1, MLX4_CMD_HW2SW_CQ, in mlx4_HW2SW_CQ()
120 struct mlx4_cmd_mailbox *mailbox; in mlx4_cq_modify() local
124 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_cq_modify()
125 if (IS_ERR(mailbox)) in mlx4_cq_modify()
[all …]
HDmlx4_srq.c64 static int mlx4_SW2HW_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_SRQ() argument
67 return mlx4_cmd(dev, mailbox->dma, srq_num, 0, in mlx4_SW2HW_SRQ()
72 static int mlx4_HW2SW_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_SRQ() argument
75 return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, srq_num, in mlx4_HW2SW_SRQ()
76 mailbox ? 0 : 1, MLX4_CMD_HW2SW_SRQ, in mlx4_HW2SW_SRQ()
86 static int mlx4_QUERY_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_QUERY_SRQ() argument
89 return mlx4_cmd_box(dev, 0, mailbox->dma, srq_num, 0, MLX4_CMD_QUERY_SRQ, in mlx4_QUERY_SRQ()
166 struct mlx4_cmd_mailbox *mailbox; in mlx4_srq_alloc() local
181 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_srq_alloc()
182 if (IS_ERR(mailbox)) { in mlx4_srq_alloc()
[all …]
HDmlx4_mcg.c54 struct mlx4_cmd_mailbox *mailbox, in mlx4_QP_FLOW_STEERING_ATTACH() argument
61 err = mlx4_cmd_imm(dev, mailbox->dma, &imm, size, 0, in mlx4_QP_FLOW_STEERING_ATTACH()
83 struct mlx4_cmd_mailbox *mailbox) in mlx4_READ_ENTRY() argument
85 return mlx4_cmd_box(dev, 0, mailbox->dma, index, 0, MLX4_CMD_READ_MCG, in mlx4_READ_ENTRY()
90 struct mlx4_cmd_mailbox *mailbox) in mlx4_WRITE_ENTRY() argument
92 return mlx4_cmd(dev, mailbox->dma, index, 0, MLX4_CMD_WRITE_MCG, in mlx4_WRITE_ENTRY()
97 struct mlx4_cmd_mailbox *mailbox) in mlx4_WRITE_PROMISC() argument
102 return mlx4_cmd(dev, mailbox->dma, in_mod, 0x1, in mlx4_WRITE_PROMISC()
107 static int mlx4_GID_HASH(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_GID_HASH() argument
113 err = mlx4_cmd_imm(dev, mailbox->dma, &imm, 0, op_mod, in mlx4_GID_HASH()
[all …]
HDmlx4_fw.c179 struct mlx4_cmd_mailbox *mailbox; in mlx4_MOD_STAT_CFG() local
188 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_MOD_STAT_CFG()
189 if (IS_ERR(mailbox)) in mlx4_MOD_STAT_CFG()
190 return PTR_ERR(mailbox); in mlx4_MOD_STAT_CFG()
191 inbox = mailbox->buf; in mlx4_MOD_STAT_CFG()
196 err = mlx4_cmd(dev, mailbox->dma, 0, 0, MLX4_CMD_MOD_STAT_CFG, in mlx4_MOD_STAT_CFG()
199 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_MOD_STAT_CFG()
205 struct mlx4_cmd_mailbox *mailbox; in mlx4_QUERY_FUNC() local
220 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_QUERY_FUNC()
221 if (IS_ERR(mailbox)) in mlx4_QUERY_FUNC()
[all …]
HDmlx4_mr.c282 static int mlx4_SW2HW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_MPT() argument
285 return mlx4_cmd(dev, mailbox->dma, mpt_index, in mlx4_SW2HW_MPT()
290 static int mlx4_HW2SW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_MPT() argument
293 return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, mpt_index, in mlx4_HW2SW_MPT()
294 !mailbox, MLX4_CMD_HW2SW_MPT, in mlx4_HW2SW_MPT()
304 struct mlx4_cmd_mailbox *mailbox = NULL; in mlx4_mr_hw_get_mpt() local
323 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_mr_hw_get_mpt()
324 if (IS_ERR(mailbox)) in mlx4_mr_hw_get_mpt()
325 return PTR_ERR(mailbox); in mlx4_mr_hw_get_mpt()
327 err = mlx4_cmd_box(dev, 0, mailbox->dma, key, in mlx4_mr_hw_get_mpt()
[all …]
HDmlx4_port.c130 struct mlx4_cmd_mailbox *mailbox; in mlx4_set_port_mac_table() local
134 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_set_port_mac_table()
135 if (IS_ERR(mailbox)) in mlx4_set_port_mac_table()
136 return PTR_ERR(mailbox); in mlx4_set_port_mac_table()
138 memcpy(mailbox->buf, entries, MLX4_MAC_TABLE_SIZE); in mlx4_set_port_mac_table()
142 err = mlx4_cmd(dev, mailbox->dma, in_mod, MLX4_SET_PORT_ETH_OPCODE, in mlx4_set_port_mac_table()
146 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_set_port_mac_table()
539 struct mlx4_cmd_mailbox *mailbox; in mlx4_set_port_vlan_table() local
543 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_set_port_vlan_table()
544 if (IS_ERR(mailbox)) in mlx4_set_port_vlan_table()
[all …]
HDmlx4_qp.c135 struct mlx4_cmd_mailbox *mailbox; in __mlx4_qp_modify() local
160 mailbox = mlx4_alloc_cmd_mailbox(dev); in __mlx4_qp_modify()
161 if (IS_ERR(mailbox)) in __mlx4_qp_modify()
162 return PTR_ERR(mailbox); in __mlx4_qp_modify()
177 *(__be32 *) mailbox->buf = cpu_to_be32(optpar); in __mlx4_qp_modify()
178 memcpy(mailbox->buf + 8, context, sizeof *context); in __mlx4_qp_modify()
180 ((struct mlx4_qp_context *) (mailbox->buf + 8))->local_qpn = in __mlx4_qp_modify()
183 ret = mlx4_cmd(dev, mailbox->dma, in __mlx4_qp_modify()
205 mlx4_free_cmd_mailbox(dev, mailbox); in __mlx4_qp_modify()
426 struct mlx4_cmd_mailbox *mailbox; in mlx4_update_qp() local
[all …]
HDmlx4_cmd.c2687 struct mlx4_cmd_mailbox *mailbox; in mlx4_alloc_cmd_mailbox() local
2689 mailbox = kmalloc(sizeof *mailbox, GFP_KERNEL); in mlx4_alloc_cmd_mailbox()
2690 if (!mailbox) in mlx4_alloc_cmd_mailbox()
2693 mailbox->buf = pci_pool_alloc(mlx4_priv(dev)->cmd.pool, GFP_KERNEL, in mlx4_alloc_cmd_mailbox()
2694 &mailbox->dma); in mlx4_alloc_cmd_mailbox()
2695 if (!mailbox->buf) { in mlx4_alloc_cmd_mailbox()
2696 kfree(mailbox); in mlx4_alloc_cmd_mailbox()
2700 memset(mailbox->buf, 0, MLX4_MAILBOX_SIZE); in mlx4_alloc_cmd_mailbox()
2702 return mailbox; in mlx4_alloc_cmd_mailbox()
2707 struct mlx4_cmd_mailbox *mailbox) in mlx4_free_cmd_mailbox() argument
[all …]
/freebsd-11-stable/sys/dev/mthca/
HDmthca_cmd.c609 struct mthca_mailbox *mailbox; in mthca_alloc_mailbox() local
611 mailbox = kmalloc(sizeof *mailbox, gfp_mask); in mthca_alloc_mailbox()
612 if (!mailbox) in mthca_alloc_mailbox()
615 mailbox->buf = pci_pool_alloc(dev->cmd.pool, gfp_mask, &mailbox->dma); in mthca_alloc_mailbox()
616 if (!mailbox->buf) { in mthca_alloc_mailbox()
617 kfree(mailbox); in mthca_alloc_mailbox()
621 return mailbox; in mthca_alloc_mailbox()
624 void mthca_free_mailbox(struct mthca_dev *dev, struct mthca_mailbox *mailbox) in mthca_free_mailbox() argument
626 if (!mailbox) in mthca_free_mailbox()
629 pci_pool_free(dev->cmd.pool, mailbox->buf, mailbox->dma); in mthca_free_mailbox()
[all …]
HDmthca_mcg.c67 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()
[all …]
HDmthca_cmd.h253 void mthca_free_mailbox(struct mthca_dev *dev, struct mthca_mailbox *mailbox);
283 int mthca_SW2HW_MPT(struct mthca_dev *dev, struct mthca_mailbox *mailbox,
285 int mthca_HW2SW_MPT(struct mthca_dev *dev, struct mthca_mailbox *mailbox,
287 int mthca_WRITE_MTT(struct mthca_dev *dev, struct mthca_mailbox *mailbox,
292 int mthca_SW2HW_EQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox,
294 int mthca_HW2SW_EQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox,
296 int mthca_SW2HW_CQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox,
298 int mthca_HW2SW_CQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox,
301 int mthca_SW2HW_SRQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox,
303 int mthca_HW2SW_SRQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox,
[all …]
HDmthca_srq.c202 struct mthca_mailbox *mailbox; in mthca_alloc_srq() local
248 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_alloc_srq()
249 if (IS_ERR(mailbox)) { in mthca_alloc_srq()
250 err = PTR_ERR(mailbox); in mthca_alloc_srq()
264 mthca_arbel_init_srq_context(dev, pd, srq, mailbox->buf); in mthca_alloc_srq()
266 mthca_tavor_init_srq_context(dev, pd, srq, mailbox->buf); in mthca_alloc_srq()
268 err = mthca_SW2HW_SRQ(dev, mailbox, srq->srqn); in mthca_alloc_srq()
284 mthca_free_mailbox(dev, mailbox); in mthca_alloc_srq()
295 err = mthca_HW2SW_SRQ(dev, mailbox, srq->srqn); in mthca_alloc_srq()
304 mthca_free_mailbox(dev, mailbox); in mthca_alloc_srq()
[all …]
HDmthca_mr.c257 struct mthca_mailbox *mailbox; in __mthca_write_mtt() local
262 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in __mthca_write_mtt()
263 if (IS_ERR(mailbox)) in __mthca_write_mtt()
264 return PTR_ERR(mailbox); in __mthca_write_mtt()
265 mtt_entry = mailbox->buf; in __mthca_write_mtt()
283 err = mthca_WRITE_MTT(dev, mailbox, (i + 1) & ~1); in __mthca_write_mtt()
295 mthca_free_mailbox(dev, mailbox); in __mthca_write_mtt()
432 struct mthca_mailbox *mailbox; in mthca_mr_alloc() local
452 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_mr_alloc()
453 if (IS_ERR(mailbox)) { in mthca_mr_alloc()
[all …]
HDmthca_cq.c777 struct mthca_mailbox *mailbox; in mthca_init_cq() local
810 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_init_cq()
811 if (IS_ERR(mailbox)) in mthca_init_cq()
814 cq_context = mailbox->buf; in mthca_init_cq()
847 err = mthca_SW2HW_CQ(dev, mailbox, cq->cqn); in mthca_init_cq()
864 mthca_free_mailbox(dev, mailbox); in mthca_init_cq()
873 mthca_free_mailbox(dev, mailbox); in mthca_init_cq()
906 struct mthca_mailbox *mailbox; in mthca_free_cq() local
909 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_free_cq()
910 if (IS_ERR(mailbox)) { in mthca_free_cq()
[all …]
HDmthca_eq.c473 struct mthca_mailbox *mailbox; in mthca_create_eq() local
494 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_create_eq()
495 if (IS_ERR(mailbox)) in mthca_create_eq()
497 eq_context = mailbox->buf; in mthca_create_eq()
545 err = mthca_SW2HW_EQ(dev, mailbox, eq->eqn); in mthca_create_eq()
552 mthca_free_mailbox(dev, mailbox); in mthca_create_eq()
578 mthca_free_mailbox(dev, mailbox); in mthca_create_eq()
591 struct mthca_mailbox *mailbox; in mthca_free_eq() local
597 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_free_eq()
598 if (IS_ERR(mailbox)) in mthca_free_eq()
[all …]
HDmthca_qp.c430 struct mthca_mailbox *mailbox = NULL; in mthca_query_qp() local
442 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_query_qp()
443 if (IS_ERR(mailbox)) { in mthca_query_qp()
444 err = PTR_ERR(mailbox); in mthca_query_qp()
448 err = mthca_QUERY_QP(dev, qp->qpn, 0, mailbox); in mthca_query_qp()
454 qp_param = mailbox->buf; in mthca_query_qp()
508 mthca_free_mailbox(dev, mailbox); in mthca_query_qp()
549 struct mthca_mailbox *mailbox; in __mthca_modify_qp() local
555 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in __mthca_modify_qp()
556 if (IS_ERR(mailbox)) { in __mthca_modify_qp()
[all …]
/freebsd-11-stable/sys/dev/mlx4/mlx4_en/
HDmlx4_en_port.c46 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_VLAN_FLTR() local
54 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_VLAN_FLTR()
55 if (IS_ERR(mailbox)) in mlx4_SET_VLAN_FLTR()
56 return PTR_ERR(mailbox); in mlx4_SET_VLAN_FLTR()
58 filter = mailbox->buf; in mlx4_SET_VLAN_FLTR()
68 err = mlx4_cmd(dev, mailbox->dma, priv->port, 0, MLX4_CMD_SET_VLAN_FLTR, in mlx4_SET_VLAN_FLTR()
70 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_VLAN_FLTR()
79 struct mlx4_cmd_mailbox *mailbox; in mlx4_en_QUERY_PORT() local
82 mailbox = mlx4_alloc_cmd_mailbox(mdev->dev); in mlx4_en_QUERY_PORT()
83 if (IS_ERR(mailbox)) in mlx4_en_QUERY_PORT()
[all …]
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
HDmlx4_ib_main.c170 struct mlx4_cmd_mailbox *mailbox; in mlx4_ib_update_gids_v1() local
176 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_ib_update_gids_v1()
177 if (IS_ERR(mailbox)) in mlx4_ib_update_gids_v1()
180 gid_tbl = mailbox->buf; in mlx4_ib_update_gids_v1()
185 err = mlx4_cmd(dev, mailbox->dma, in mlx4_ib_update_gids_v1()
190 err += mlx4_cmd(dev, mailbox->dma, in mlx4_ib_update_gids_v1()
195 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_ib_update_gids_v1()
203 struct mlx4_cmd_mailbox *mailbox; in mlx4_ib_update_gids_v1_v2() local
216 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_ib_update_gids_v1_v2()
217 if (IS_ERR(mailbox)) in mlx4_ib_update_gids_v1_v2()
[all …]
/freebsd-11-stable/sys/gnu/dts/arm/
HDdra7.dtsi512 mailbox1: mailbox@4a0f4000 {
513 compatible = "ti,omap4-mailbox";
525 mailbox2: mailbox@4883a000 {
526 compatible = "ti,omap4-mailbox";
539 mailbox3: mailbox@4883c000 {
540 compatible = "ti,omap4-mailbox";
553 mailbox4: mailbox@4883e000 {
554 compatible = "ti,omap4-mailbox";
567 mailbox5: mailbox@48840000 {
568 compatible = "ti,omap4-mailbox";
[all …]
HDomap2420.dtsi172 mailbox: mailbox@48094000 { label
173 compatible = "ti,omap2-mailbox";
177 ti,hwmods = "mailbox";
HDomap2430.dtsi260 mailbox: mailbox@48094000 { label
261 compatible = "ti,omap2-mailbox";
264 ti,hwmods = "mailbox";
/freebsd-11-stable/contrib/sendmail/contrib/
HDdomainmap.m427 jsmith johnsmith@mailbox.foo.com
31 johnsmith@mailbox.foo.com, and mail sent to jdoe@foo.com will be
38 johnsmith+sometext@mailbox.foo.com.
/freebsd-11-stable/sys/dev/isp/
HDDriverManual.txt123 to a set of dual-ranked 16 bit incoming and outgoing mailbox registers
126 means that at the same host visible address if you write a mailbox
127 register, that is a write to an (incoming, to the HBA) mailbox register,
129 mailbox register with completely different data. Each HBA also then has
138 use the incoming mailbox registers to interrupt and issue commands to
140 the ougtoing mailbox registers). The second mechanism is to establish,
141 via mailbox commands, circular request and response queues in system
150 HBA has 8 dual-ranked 16 bit mailbox registers, mostly for out-of-band
158 In addition to synchronously initiated usage of mailbox commands by
160 solely in outgoing mailbox registers. These asynchronous notifications in
[all …]
/freebsd-11-stable/contrib/file/magic/Magdir/
HDmmdf6 0 string \001\001\001\001 MMDF mailbox

123