Home
last modified time | relevance | path

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

1234

/drivers/net/ethernet/mellanox/mlx4/
A Dfw_qos.c94 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()
121 if (IS_ERR(mailbox)) in mlx4_SET_PORT_SCHEDULER()
124 context = mailbox->buf; in mlx4_SET_PORT_SCHEDULER()
168 if (IS_ERR(mailbox)) in mlx4_ALLOCATE_VPP_get()
202 if (IS_ERR(mailbox)) in mlx4_ALLOCATE_VPP_set()
230 if (IS_ERR(mailbox)) in mlx4_SET_VPORT_QOS_get()
233 ctx = mailbox->buf; in mlx4_SET_VPORT_QOS_get()
267 if (IS_ERR(mailbox)) in mlx4_SET_VPORT_QOS_set()
[all …]
A Dsrq.c75 return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, srq_num, in mlx4_HW2SW_SRQ()
166 struct mlx4_cmd_mailbox *mailbox; in mlx4_srq_alloc() local
182 if (IS_ERR(mailbox)) { in mlx4_srq_alloc()
183 err = PTR_ERR(mailbox); in mlx4_srq_alloc()
187 srq_context = mailbox->buf; in mlx4_srq_alloc()
202 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_srq_alloc()
251 struct mlx4_cmd_mailbox *mailbox; in mlx4_srq_query() local
256 if (IS_ERR(mailbox)) in mlx4_srq_query()
257 return PTR_ERR(mailbox); in mlx4_srq_query()
259 srq_context = mailbox->buf; in mlx4_srq_query()
[all …]
A Dmcg.c195 if (IS_ERR(mailbox)) { in new_steering_entry()
199 mgm = mailbox->buf; in new_steering_entry()
344 if (IS_ERR(mailbox)) in promisc_steering_entry()
346 mgm = mailbox->buf; in promisc_steering_entry()
458 mgm = mailbox->buf; in add_promisc_qp()
588 mgm = mailbox->buf; in remove_promisc_qp()
621 mailbox); in remove_promisc_qp()
708 if (IS_ERR(mailbox)) in find_entry()
710 mgid = mailbox->buf; in find_entry()
1122 mgm = mailbox->buf; in mlx4_qp_attach_common()
[all …]
A Dfw.c190 if (IS_ERR(mailbox)) in mlx4_MOD_STAT_CFG()
192 inbox = mailbox->buf; in mlx4_MOD_STAT_CFG()
222 if (IS_ERR(mailbox)) in mlx4_QUERY_FUNC()
224 outbox = mailbox->buf; in mlx4_QUERY_FUNC()
556 if (IS_ERR(mailbox)) in mlx4_QUERY_FUNC_CAP()
834 if (IS_ERR(mailbox)) in mlx4_QUERY_DEV_CAP()
1195 if (IS_ERR(mailbox)) in mlx4_QUERY_PORT()
1496 if (IS_ERR(mailbox)) in mlx4_get_slave_pkey_gid_tbl_len()
1531 if (IS_ERR(mailbox)) in mlx4_map_cmd()
1649 if (IS_ERR(mailbox)) in mlx4_QUERY_FW()
[all …]
A Dcq.c164 return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, in mlx4_HW2SW_CQ()
172 struct mlx4_cmd_mailbox *mailbox; in mlx4_cq_modify() local
177 if (IS_ERR(mailbox)) in mlx4_cq_modify()
178 return PTR_ERR(mailbox); in mlx4_cq_modify()
180 cq_context = mailbox->buf; in mlx4_cq_modify()
200 if (IS_ERR(mailbox)) in mlx4_cq_resize()
201 return PTR_ERR(mailbox); in mlx4_cq_resize()
203 cq_context = mailbox->buf; in mlx4_cq_resize()
371 if (IS_ERR(mailbox)) { in mlx4_cq_alloc()
372 err = PTR_ERR(mailbox); in mlx4_cq_alloc()
[all …]
A Dmr.c287 return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, mpt_index, in mlx4_HW2SW_MPT()
318 if (IS_ERR(mailbox)) in mlx4_mr_hw_get_mpt()
319 return PTR_ERR(mailbox); in mlx4_mr_hw_get_mpt()
638 if (IS_ERR(mailbox)) { in mlx4_mr_enable()
639 err = PTR_ERR(mailbox); in mlx4_mr_enable()
642 mpt_entry = mailbox->buf; in mlx4_mr_enable()
760 if (IS_ERR(mailbox)) in mlx4_write_mtt()
762 inbox = mailbox->buf; in mlx4_write_mtt()
849 if (IS_ERR(mailbox)) { in mlx4_mw_enable()
850 err = PTR_ERR(mailbox); in mlx4_mw_enable()
[all …]
A Dport.c135 if (IS_ERR(mailbox)) in mlx4_set_port_mac_table()
524 if (IS_ERR(mailbox)) in mlx4_set_port_vlan_table()
1209 if (IS_ERR(mailbox)) in mlx4_reset_roce_gids()
1557 if (IS_ERR(mailbox)) in mlx4_SET_PORT()
1597 if (IS_ERR(mailbox)) in mlx4_SET_PORT_general()
1636 if (IS_ERR(mailbox)) in mlx4_SET_PORT_qpn_calc()
1668 if (IS_ERR(mailbox)) in mlx4_SET_PORT_user_mtu()
1692 if (IS_ERR(mailbox)) in mlx4_SET_PORT_user_mac()
1716 if (IS_ERR(mailbox)) in mlx4_SET_PORT_fcs_check()
1757 if (IS_ERR(mailbox)) in mlx4_SET_PORT_VXLAN()
[all …]
A Den_port.c46 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_VLAN_FLTR() local
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()
77 struct mlx4_cmd_mailbox *mailbox; in mlx4_en_QUERY_PORT() local
81 if (IS_ERR(mailbox)) in mlx4_en_QUERY_PORT()
82 return PTR_ERR(mailbox); in mlx4_en_QUERY_PORT()
88 qport_context = mailbox->buf; in mlx4_en_QUERY_PORT()
199 if (IS_ERR(mailbox)) in mlx4_en_DUMP_ETH_STATS()
200 return PTR_ERR(mailbox); in mlx4_en_DUMP_ETH_STATS()
[all …]
A Dqp.c139 struct mlx4_cmd_mailbox *mailbox; in __mlx4_qp_modify() local
165 if (IS_ERR(mailbox)) in __mlx4_qp_modify()
166 return PTR_ERR(mailbox); in __mlx4_qp_modify()
187 ret = mlx4_cmd(dev, mailbox->dma, in __mlx4_qp_modify()
209 mlx4_free_cmd_mailbox(dev, mailbox); in __mlx4_qp_modify()
447 struct mlx4_cmd_mailbox *mailbox; in mlx4_update_qp() local
457 if (IS_ERR(mailbox)) in mlx4_update_qp()
458 return PTR_ERR(mailbox); in mlx4_update_qp()
901 struct mlx4_cmd_mailbox *mailbox; in mlx4_qp_query() local
905 if (IS_ERR(mailbox)) in mlx4_qp_query()
[all …]
/drivers/mailbox/
A DMakefile4 obj-$(CONFIG_MAILBOX) += mailbox.o
6 obj-$(CONFIG_MAILBOX_TEST) += mailbox-test.o
14 obj-$(CONFIG_AST2700_MBOX) += ast2700-mailbox.o
16 obj-$(CONFIG_CV1800_MBOX) += cv1800-mailbox.o
18 obj-$(CONFIG_EXYNOS_MBOX) += exynos-mailbox.o
20 obj-$(CONFIG_IMX_MBOX) += imx-mailbox.o
28 obj-$(CONFIG_OMAP2PLUS_MBOX) += omap-mailbox.o
34 obj-$(CONFIG_ALTERA_MBOX) += mailbox-altera.o
38 obj-$(CONFIG_STI_MBOX) += mailbox-sti.o
70 obj-$(CONFIG_SPRD_MBOX) += sprd-mailbox.o
[all …]
A DKconfig16 The controller has 3 mailbox channels, the last of which can be
49 tristate "cv1800 mailbox"
64 generation and a shared register for passing mailbox messages.
141 Altera mailbox support.
178 Y here if you want to use Hi3660 mailbox controller.
188 build Hi6220 mailbox controller driver.
207 module will be called mailbox-mpfs.
220 module will be called mailbox-mchp-ipc-sbi.
301 Say yes here to add support for Xilinx IPI mailbox driver.
322 you want to build the Spreatrum mailbox controller driver.
[all …]
/drivers/infiniband/hw/mthca/
A Dmthca_cmd.c614 mailbox = kmalloc(sizeof *mailbox, gfp_mask); in mthca_alloc_mailbox()
615 if (!mailbox) in mthca_alloc_mailbox()
618 mailbox->buf = dma_pool_alloc(dev->cmd.pool, gfp_mask, &mailbox->dma); in mthca_alloc_mailbox()
620 kfree(mailbox); in mthca_alloc_mailbox()
624 return mailbox; in mthca_alloc_mailbox()
629 if (!mailbox) in mthca_free_mailbox()
632 dma_pool_free(dev->cmd.pool, mailbox->buf, mailbox->dma); in mthca_free_mailbox()
633 kfree(mailbox); in mthca_free_mailbox()
1612 return mthca_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, mpt_index, in mthca_HW2SW_MPT()
1779 if (!mailbox) { in mthca_MODIFY_QP()
[all …]
A Dmthca_mcg.c67 struct mthca_mailbox *mailbox; in find_mgm() local
73 if (IS_ERR(mailbox)) in find_mgm()
75 mgid = mailbox->buf; in find_mgm()
123 struct mthca_mailbox *mailbox; in mthca_multicast_attach() local
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()
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()
[all …]
A Dmthca_cmd.h283 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,
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,
306 struct mthca_mailbox *mailbox);
310 struct mthca_mailbox *mailbox, u32 optmask);
312 struct mthca_mailbox *mailbox);
318 struct mthca_mailbox *mailbox);
[all …]
A Dmthca_srq.c210 struct mthca_mailbox *mailbox; in mthca_alloc_srq() local
257 if (IS_ERR(mailbox)) { in mthca_alloc_srq()
258 err = PTR_ERR(mailbox); in mthca_alloc_srq()
292 mthca_free_mailbox(dev, mailbox); in mthca_alloc_srq()
340 struct mthca_mailbox *mailbox; in mthca_free_srq() local
344 if (IS_ERR(mailbox)) { in mthca_free_srq()
400 struct mthca_mailbox *mailbox; in mthca_query_srq() local
406 if (IS_ERR(mailbox)) in mthca_query_srq()
407 return PTR_ERR(mailbox); in mthca_query_srq()
414 arbel_ctx = mailbox->buf; in mthca_query_srq()
[all …]
A Dmthca_mr.c255 struct mthca_mailbox *mailbox; in __mthca_write_mtt() local
261 if (IS_ERR(mailbox)) in __mthca_write_mtt()
262 return PTR_ERR(mailbox); in __mthca_write_mtt()
263 mtt_entry = mailbox->buf; in __mthca_write_mtt()
293 mthca_free_mailbox(dev, mailbox); in __mthca_write_mtt()
430 struct mthca_mailbox *mailbox; in mthca_mr_alloc() local
451 if (IS_ERR(mailbox)) { in mthca_mr_alloc()
452 err = PTR_ERR(mailbox); in mthca_mr_alloc()
455 mpt_entry = mailbox->buf; in mthca_mr_alloc()
495 mthca_free_mailbox(dev, mailbox); in mthca_mr_alloc()
[all …]
/drivers/infiniband/hw/hns/
A Dhns_roce_cmd.c255 struct hns_roce_cmd_mailbox *mailbox; in hns_roce_alloc_cmd_mailbox() local
257 mailbox = kmalloc(sizeof(*mailbox), GFP_KERNEL); in hns_roce_alloc_cmd_mailbox()
258 if (!mailbox) in hns_roce_alloc_cmd_mailbox()
261 mailbox->buf = in hns_roce_alloc_cmd_mailbox()
263 if (!mailbox->buf) { in hns_roce_alloc_cmd_mailbox()
264 kfree(mailbox); in hns_roce_alloc_cmd_mailbox()
268 return mailbox; in hns_roce_alloc_cmd_mailbox()
274 if (!mailbox) in hns_roce_free_cmd_mailbox()
277 dma_pool_free(hr_dev->cmd.pool, mailbox->buf, mailbox->dma); in hns_roce_free_cmd_mailbox()
278 kfree(mailbox); in hns_roce_free_cmd_mailbox()
[all …]
/drivers/net/ethernet/wangxun/libwx/
A Dwx_mbx.c18 u32 mailbox; in wx_obtain_mbx_lock_pf() local
25 mailbox = rd32(wx, WX_PXMAILBOX(vf)); in wx_obtain_mbx_lock_pf()
26 if (mailbox & WX_PXMAILBOX_PFU) in wx_obtain_mbx_lock_pf()
180 u32 mailbox = rd32(wx, WX_VXMAILBOX); in wx_read_v2p_mailbox() local
182 mailbox |= wx->mbx.mailbox; in wx_read_v2p_mailbox()
183 wx->mbx.mailbox |= mailbox & WX_VXMAILBOX_R2C_BITS; in wx_read_v2p_mailbox()
185 return mailbox; in wx_read_v2p_mailbox()
203 u32 mailbox; in wx_obtain_mbx_lock_vf() local
206 (mailbox & WX_VXMAILBOX_VFU), in wx_obtain_mbx_lock_vf()
218 wx->mbx.mailbox &= ~mask; in wx_check_for_bit_vf()
[all …]
/drivers/staging/gpib/include/
A Damccs5933.h16 extern inline int INCOMING_MAILBOX_REG(unsigned int mailbox) in INCOMING_MAILBOX_REG() argument
18 return (0x10 + 4 * mailbox); in INCOMING_MAILBOX_REG()
38 extern inline int INBOX_SELECT_BITS(unsigned int mailbox) in INBOX_SELECT_BITS() argument
40 return (mailbox & 0x3) << 10; in INBOX_SELECT_BITS()
50 extern inline int OUTBOX_SELECT_BITS(unsigned int mailbox) in OUTBOX_SELECT_BITS() argument
52 return (mailbox & 0x3) << 2; in OUTBOX_SELECT_BITS()
/drivers/scsi/smartpqi/
A Dsmartpqi_sis.c179 u32 mailbox[6]; /* mailboxes 0-5 */ member
248 params->mailbox[0] = cmd_status; in sis_send_sync_cmd()
249 for (i = 1; i < ARRAY_SIZE(params->mailbox); i++) in sis_send_sync_cmd()
273 properties = params.mailbox[1]; in sis_get_ctrl_properties()
278 extended_properties = params.mailbox[4]; in sis_get_ctrl_properties()
302 ctrl_info->max_sg_entries = params.mailbox[1]; in sis_get_pqi_capabilities()
303 ctrl_info->max_transfer_size = params.mailbox[2]; in sis_get_pqi_capabilities()
305 ctrl_info->config_table_offset = params.mailbox[4]; in sis_get_pqi_capabilities()
306 ctrl_info->config_table_length = params.mailbox[5]; in sis_get_pqi_capabilities()
347 params.mailbox[1] = lower_32_bits((u64)bus_address); in sis_init_base_struct_addr()
[all …]
/drivers/char/
A Dapplicom.c362 struct mailbox tmpmailbox; in ac_write()
382 sizeof(struct mailbox))) in ac_write()
411 for (c = 0; c < sizeof(struct mailbox);) { in ac_write()
468 for (c = 0; c < sizeof(struct mailbox); c++) in ac_write()
484 struct st_ram_io *st_loc, struct mailbox *mailbox) in do_ac_read() argument
487 unsigned char *to = (unsigned char *)mailbox; in do_ac_read()
499 for (c = 0; c < sizeof(struct mailbox); c++) in do_ac_read()
525 for (c = 0; c < sizeof(struct mailbox);) { in do_ac_read()
569 struct mailbox mailbox; in ac_read() local
573 ret = do_ac_read(i, buf, &st_loc, &mailbox); in ac_read()
[all …]
/drivers/accel/amdxdna/
A Damdxdna_mailbox.h9 struct mailbox;
73 struct mailbox *xdnam_mailbox_create(struct drm_device *ddev,
88 xdna_mailbox_create_channel(struct mailbox *mailbox,
/drivers/net/ethernet/intel/idpf/
A Didpf_ptp.c20 else if (adapter->ptp->caps & mailbox) in idpf_ptp_get_access()
36 u32 direct, mailbox; in idpf_ptp_get_features_access() local
43 mailbox); in idpf_ptp_get_features_access()
47 mailbox = VIRTCHNL2_CAP_PTP_GET_CROSS_TIME_MB; in idpf_ptp_get_features_access()
50 mailbox); in idpf_ptp_get_features_access()
54 mailbox = VIRTCHNL2_CAP_PTP_SET_DEVICE_CLK_TIME; in idpf_ptp_get_features_access()
57 mailbox); in idpf_ptp_get_features_access()
61 mailbox = VIRTCHNL2_CAP_PTP_ADJ_DEVICE_CLK_MB; in idpf_ptp_get_features_access()
64 mailbox); in idpf_ptp_get_features_access()
68 mailbox = VIRTCHNL2_CAP_PTP_TX_TSTAMPS_MB; in idpf_ptp_get_features_access()
[all …]
/drivers/soc/apple/
A DMakefile3 obj-$(CONFIG_APPLE_MAILBOX) += apple-mailbox.o
4 apple-mailbox-y = mailbox.o
/drivers/infiniband/hw/mlx4/
A Dmain.c171 if (IS_ERR(mailbox)) in mlx4_ib_update_gids_v1()
174 gid_tbl = mailbox->buf; in mlx4_ib_update_gids_v1()
211 if (IS_ERR(mailbox)) in mlx4_ib_update_gids_v1_v2()
214 gid_tbl = mailbox->buf; in mlx4_ib_update_gids_v1_v2()
764 if (IS_ERR(mailbox)) in eth_link_query_port()
765 return PTR_ERR(mailbox); in eth_link_query_port()
1021 if (IS_ERR(mailbox)) in mlx4_ib_modify_device()
1040 if (IS_ERR(mailbox)) in mlx4_ib_SET_PORT()
1543 if (IS_ERR(mailbox)) in __mlx4_ib_create_flow()
1545 ctrl = mailbox->buf; in __mlx4_ib_create_flow()
[all …]

Completed in 80 milliseconds

1234