Home
last modified time | relevance | path

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

123

/linux-3.4.99/drivers/infiniband/hw/mthca/
Dmthca_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 …]
Dmthca_cmd.c610 struct mthca_mailbox *mailbox; in mthca_alloc_mailbox() local
612 mailbox = kmalloc(sizeof *mailbox, gfp_mask); in mthca_alloc_mailbox()
613 if (!mailbox) in mthca_alloc_mailbox()
616 mailbox->buf = pci_pool_alloc(dev->cmd.pool, gfp_mask, &mailbox->dma); in mthca_alloc_mailbox()
617 if (!mailbox->buf) { in mthca_alloc_mailbox()
618 kfree(mailbox); in mthca_alloc_mailbox()
622 return mailbox; in mthca_alloc_mailbox()
625 void mthca_free_mailbox(struct mthca_dev *dev, struct mthca_mailbox *mailbox) in mthca_free_mailbox() argument
627 if (!mailbox) in mthca_free_mailbox()
630 pci_pool_free(dev->cmd.pool, mailbox->buf, mailbox->dma); in mthca_free_mailbox()
[all …]
Dmthca_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 …]
Dmthca_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 …]
Dmthca_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 …]
Dmthca_cq.c780 struct mthca_mailbox *mailbox; in mthca_init_cq() local
813 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_init_cq()
814 if (IS_ERR(mailbox)) in mthca_init_cq()
817 cq_context = mailbox->buf; in mthca_init_cq()
850 err = mthca_SW2HW_CQ(dev, mailbox, cq->cqn); in mthca_init_cq()
867 mthca_free_mailbox(dev, mailbox); in mthca_init_cq()
876 mthca_free_mailbox(dev, mailbox); in mthca_init_cq()
909 struct mthca_mailbox *mailbox; in mthca_free_cq() local
912 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_free_cq()
913 if (IS_ERR(mailbox)) { in mthca_free_cq()
[all …]
Dmthca_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 …]
/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/
Dcq.c96 static int mlx4_SW2HW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_CQ() argument
99 return mlx4_cmd(dev, mailbox->dma, cq_num, 0, in mlx4_SW2HW_CQ()
104 static int mlx4_MODIFY_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_MODIFY_CQ() argument
107 return mlx4_cmd(dev, mailbox->dma, cq_num, opmod, MLX4_CMD_MODIFY_CQ, in mlx4_MODIFY_CQ()
111 static int mlx4_HW2SW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_CQ() argument
114 return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, in mlx4_HW2SW_CQ()
115 cq_num, mailbox ? 0 : 1, MLX4_CMD_HW2SW_CQ, in mlx4_HW2SW_CQ()
122 struct mlx4_cmd_mailbox *mailbox; in mlx4_cq_modify() local
126 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_cq_modify()
127 if (IS_ERR(mailbox)) in mlx4_cq_modify()
[all …]
Dmcg.c66 struct mlx4_cmd_mailbox *mailbox) in mlx4_READ_ENTRY() argument
68 return mlx4_cmd_box(dev, 0, mailbox->dma, index, 0, MLX4_CMD_READ_MCG, in mlx4_READ_ENTRY()
73 struct mlx4_cmd_mailbox *mailbox) in mlx4_WRITE_ENTRY() argument
75 return mlx4_cmd(dev, mailbox->dma, index, 0, MLX4_CMD_WRITE_MCG, in mlx4_WRITE_ENTRY()
80 struct mlx4_cmd_mailbox *mailbox) in mlx4_WRITE_PROMISC() argument
85 return mlx4_cmd(dev, mailbox->dma, in_mod, 0x1, in mlx4_WRITE_PROMISC()
90 static int mlx4_GID_HASH(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_GID_HASH() argument
96 err = mlx4_cmd_imm(dev, mailbox->dma, &imm, 0, op_mod, in mlx4_GID_HASH()
130 struct mlx4_cmd_mailbox *mailbox; in new_steering_entry() local
169 mailbox = mlx4_alloc_cmd_mailbox(dev); in new_steering_entry()
[all …]
Den_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()
67 err = mlx4_cmd(dev, mailbox->dma, priv->port, 0, MLX4_CMD_SET_VLAN_FLTR, in mlx4_SET_VLAN_FLTR()
69 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_VLAN_FLTR()
78 struct mlx4_cmd_mailbox *mailbox; in mlx4_en_QUERY_PORT() local
81 mailbox = mlx4_alloc_cmd_mailbox(mdev->dev); in mlx4_en_QUERY_PORT()
82 if (IS_ERR(mailbox)) in mlx4_en_QUERY_PORT()
[all …]
Dsrq.c67 static int mlx4_SW2HW_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_SRQ() argument
70 return mlx4_cmd(dev, mailbox->dma, srq_num, 0, in mlx4_SW2HW_SRQ()
75 static int mlx4_HW2SW_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_SRQ() argument
78 return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, srq_num, in mlx4_HW2SW_SRQ()
79 mailbox ? 0 : 1, MLX4_CMD_HW2SW_SRQ, in mlx4_HW2SW_SRQ()
89 static int mlx4_QUERY_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_QUERY_SRQ() argument
92 return mlx4_cmd_box(dev, 0, mailbox->dma, srq_num, 0, MLX4_CMD_QUERY_SRQ, in mlx4_QUERY_SRQ()
169 struct mlx4_cmd_mailbox *mailbox; in mlx4_srq_alloc() local
184 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_srq_alloc()
185 if (IS_ERR(mailbox)) { in mlx4_srq_alloc()
[all …]
Dfw.c123 struct mlx4_cmd_mailbox *mailbox; in mlx4_MOD_STAT_CFG() local
132 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_MOD_STAT_CFG()
133 if (IS_ERR(mailbox)) in mlx4_MOD_STAT_CFG()
134 return PTR_ERR(mailbox); in mlx4_MOD_STAT_CFG()
135 inbox = mailbox->buf; in mlx4_MOD_STAT_CFG()
142 err = mlx4_cmd(dev, mailbox->dma, 0, 0, MLX4_CMD_MOD_STAT_CFG, in mlx4_MOD_STAT_CFG()
145 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_MOD_STAT_CFG()
222 struct mlx4_cmd_mailbox *mailbox; in mlx4_QUERY_FUNC_CAP() local
230 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_QUERY_FUNC_CAP()
231 if (IS_ERR(mailbox)) in mlx4_QUERY_FUNC_CAP()
[all …]
Dport.c227 struct mlx4_cmd_mailbox *mailbox; in mlx4_set_port_mac_table() local
231 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_set_port_mac_table()
232 if (IS_ERR(mailbox)) in mlx4_set_port_mac_table()
233 return PTR_ERR(mailbox); in mlx4_set_port_mac_table()
235 memcpy(mailbox->buf, entries, MLX4_MAC_TABLE_SIZE); in mlx4_set_port_mac_table()
239 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_set_port_mac_table()
242 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_set_port_mac_table()
399 struct mlx4_cmd_mailbox *mailbox; in mlx4_set_port_vlan_table() local
403 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_set_port_vlan_table()
404 if (IS_ERR(mailbox)) in mlx4_set_port_vlan_table()
[all …]
Dmr.c291 static int mlx4_SW2HW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_MPT() argument
294 return mlx4_cmd(dev, mailbox->dma, mpt_index, in mlx4_SW2HW_MPT()
299 static int mlx4_HW2SW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_MPT() argument
302 return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, mpt_index, in mlx4_HW2SW_MPT()
303 !mailbox, MLX4_CMD_HW2SW_MPT, in mlx4_HW2SW_MPT()
322 struct mlx4_cmd_mailbox *mailbox, in mlx4_WRITE_MTT() argument
325 return mlx4_cmd(dev, mailbox->dma, num_entries, 0, MLX4_CMD_WRITE_MTT, in mlx4_WRITE_MTT()
463 struct mlx4_cmd_mailbox *mailbox; in mlx4_mr_enable() local
471 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_mr_enable()
472 if (IS_ERR(mailbox)) { in mlx4_mr_enable()
[all …]
Dqp.c123 struct mlx4_cmd_mailbox *mailbox; in __mlx4_qp_modify() local
143 mailbox = mlx4_alloc_cmd_mailbox(dev); in __mlx4_qp_modify()
144 if (IS_ERR(mailbox)) in __mlx4_qp_modify()
145 return PTR_ERR(mailbox); in __mlx4_qp_modify()
154 *(__be32 *) mailbox->buf = cpu_to_be32(optpar); in __mlx4_qp_modify()
155 memcpy(mailbox->buf + 8, context, sizeof *context); in __mlx4_qp_modify()
157 ((struct mlx4_qp_context *) (mailbox->buf + 8))->local_qpn = in __mlx4_qp_modify()
160 ret = mlx4_cmd(dev, mailbox->dma, in __mlx4_qp_modify()
165 mlx4_free_cmd_mailbox(dev, mailbox); in __mlx4_qp_modify()
461 struct mlx4_cmd_mailbox *mailbox; in mlx4_qp_query() local
[all …]
Deq.c573 static int mlx4_SW2HW_EQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_EQ() argument
576 return mlx4_cmd(dev, mailbox->dma, eq_num, 0, in mlx4_SW2HW_EQ()
581 static int mlx4_HW2SW_EQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_EQ() argument
584 return mlx4_cmd_box(dev, 0, mailbox->dma, eq_num, in mlx4_HW2SW_EQ()
626 struct mlx4_cmd_mailbox *mailbox; in mlx4_create_eq() local
651 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_create_eq()
652 if (IS_ERR(mailbox)) in mlx4_create_eq()
654 eq_context = mailbox->buf; in mlx4_create_eq()
697 err = mlx4_SW2HW_EQ(dev, mailbox, eq->eqn); in mlx4_create_eq()
704 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_create_eq()
[all …]
/linux-3.4.99/drivers/net/appletalk/
Dltpc.h20 unsigned char mailbox; member
25 unsigned char mailbox; member
32 unsigned char mailbox; member
38 unsigned char mailbox; member
43 unsigned char mailbox; member
49 unsigned char mailbox; member
Dltpc.c277 unsigned char mailbox; member
332 static unsigned char mailbox[16]; variable
550 qels[0].mailbox = 0; in idle()
575 ltdmacbuf[1] = q->mailbox; in idle()
599 qels[0].mailbox = 0; in idle()
618 if(q->mailbox) { in idle()
622 mailbox[ 0x0f & ltdmabuf[0] ] = ltdmabuf[1]; in idle()
659 qels[i].mailbox = i; /* this should be initted rather */ in do_write()
662 ret = mailbox[i]; in do_write()
683 qels[i].mailbox = i; /* this should be initted rather */ in do_read()
[all …]
/linux-3.4.99/drivers/char/
Dapplicom.c362 struct mailbox tmpmailbox; in ac_write()
368 if (count != sizeof(struct st_ram_io) + sizeof(struct mailbox)) { in ac_write()
372 count, sizeof(struct st_ram_io) + sizeof(struct mailbox)); in ac_write()
382 sizeof(struct mailbox))) in ac_write()
407 for (c = 0; c < sizeof(struct mailbox);) { in ac_write()
410 for (c++; c % 8 && c < sizeof(struct mailbox); c++) { in ac_write()
464 for (c = 0; c < sizeof(struct mailbox); c++) in ac_write()
480 struct st_ram_io *st_loc, struct mailbox *mailbox) in do_ac_read() argument
483 unsigned char *to = (unsigned char *)mailbox; in do_ac_read()
495 for (c = 0; c < sizeof(struct mailbox); c++) in do_ac_read()
[all …]
/linux-3.4.99/drivers/infiniband/hw/mlx4/
Dmain.c280 struct mlx4_cmd_mailbox *mailbox; in eth_link_query_port() local
283 mailbox = mlx4_alloc_cmd_mailbox(mdev->dev); in eth_link_query_port()
284 if (IS_ERR(mailbox)) in eth_link_query_port()
285 return PTR_ERR(mailbox); in eth_link_query_port()
287 err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, port, 0, in eth_link_query_port()
293 props->active_width = (((u8 *)mailbox->buf)[5] == 0x40) ? in eth_link_query_port()
319 mlx4_free_cmd_mailbox(mdev->dev, mailbox); in eth_link_query_port()
425 struct mlx4_cmd_mailbox *mailbox; in mlx4_ib_modify_device() local
441 mailbox = mlx4_alloc_cmd_mailbox(to_mdev(ibdev)->dev); in mlx4_ib_modify_device()
442 if (IS_ERR(mailbox)) in mlx4_ib_modify_device()
[all …]
Dmad.c317 struct mlx4_cmd_mailbox *mailbox; in iboe_process_mad() local
326 mailbox = mlx4_alloc_cmd_mailbox(dev->dev); in iboe_process_mad()
327 if (IS_ERR(mailbox)) in iboe_process_mad()
330 err = mlx4_cmd_box(dev->dev, 0, mailbox->dma, inmod, 0, in iboe_process_mad()
337 mode = ((struct mlx4_counter *)mailbox->buf)->counter_mode; in iboe_process_mad()
340 edit_counter(mailbox->buf, in iboe_process_mad()
349 mlx4_free_cmd_mailbox(dev->dev, mailbox); in iboe_process_mad()
/linux-3.4.99/Documentation/ABI/testing/
Dsysfs-platform-at916 Value representing the can_id of mailbox 0.
12 contents of mailbox 0 may be send under certain
16 mailbox and load it with an unused identifier.
/linux-3.4.99/Documentation/video4linux/cx2341x/
Dfw-calling.txt6 The preferred calling convention is known as the firmware mailbox. The
36 0 I Driver is using this mailbox.
52 will reset that mailbox.
54 To make an API call, the driver iterates over each mailbox looking for the
62 time set in the timeout register, the firmware will reset that mailbox.
66 firmware which notification mailbox to use. The firmware signals the host via
/linux-3.4.99/arch/mips/pci/
Dpci-vr41xx.c91 .mailbox = &pci_mailbox,
115 struct pci_mailbox_address *mailbox; in vr41xx_pciu_init() local
237 if (setup->mailbox != NULL) { in vr41xx_pciu_init()
238 mailbox = setup->mailbox; in vr41xx_pciu_init()
239 val = MBADD(mailbox->base_address) | TYPE_32BITSPACE | in vr41xx_pciu_init()
/linux-3.4.99/drivers/media/video/cx88/
Dcx88-blackbird.c324 memory_read(dev->core, dev->mailbox - 4, &value); in blackbird_mbox_func()
330 memory_read(dev->core, dev->mailbox, &flag); in blackbird_mbox_func()
337 memory_write(dev->core, dev->mailbox, flag); in blackbird_mbox_func()
340 memory_write(dev->core, dev->mailbox + 1, command); /* command code */ in blackbird_mbox_func()
341 memory_write(dev->core, dev->mailbox + 3, IVTV_API_STD_TIMEOUT); /* timeout */ in blackbird_mbox_func()
343 memory_write(dev->core, dev->mailbox + 4 + i, data[i]); in blackbird_mbox_func()
347 memory_write(dev->core, dev->mailbox + 4 + i, 0); in blackbird_mbox_func()
350 memory_write(dev->core, dev->mailbox, flag); in blackbird_mbox_func()
355 memory_read(dev->core, dev->mailbox, &flag); in blackbird_mbox_func()
367 memory_read(dev->core, dev->mailbox + 4 + i, data + i); in blackbird_mbox_func()
[all …]

123