Home
last modified time | relevance | path

Searched refs:mbox (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/freebsd/sys/contrib/device-tree/src/arm64/ti/
H A Dk3-j784s4-j742s2-ti-ipc-firmware-common.dtsi134 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
135 ti,mbox-rx = <0 0 0>;
136 ti,mbox-tx = <1 0 0>;
139 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
140 ti,mbox-rx = <2 0 0>;
141 ti,mbox-tx = <3 0 0>;
149 mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
150 ti,mbox-rx = <0 0 0>;
151 ti,mbox-tx = <1 0 0>;
154 mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
[all …]
H A Dk3-j721e-ti-ipc-firmware.dtsi118 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
119 ti,mbox-rx = <0 0 0>;
120 ti,mbox-tx = <1 0 0>;
123 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
124 ti,mbox-rx = <2 0 0>;
125 ti,mbox-tx = <3 0 0>;
133 mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
134 ti,mbox-rx = <0 0 0>;
135 ti,mbox-tx = <1 0 0>;
138 mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
[all …]
H A Dk3-j721s2-ti-ipc-firmware.dtsi104 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
105 ti,mbox-rx = <0 0 0>;
106 ti,mbox-tx = <1 0 0>;
109 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
110 ti,mbox-rx = <2 0 0>;
111 ti,mbox-tx = <3 0 0>;
119 mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
120 ti,mbox-rx = <0 0 0>;
121 ti,mbox-tx = <1 0 0>;
124 mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
[all …]
H A Dk3-j722s-ti-ipc-firmware.dtsi67 mbox_wkup_r5_0: mbox-wkup-r5-0 {
68 ti,mbox-rx = <0 0 0>;
69 ti,mbox-tx = <1 0 0>;
76 mbox_mcu_r5_0: mbox-mcu-r5-0 {
77 ti,mbox-rx = <0 0 0>;
78 ti,mbox-tx = <1 0 0>;
85 mbox_c7x_0: mbox-c7x-0 {
86 ti,mbox-rx = <0 0 0>;
87 ti,mbox-tx = <1 0 0>;
94 mbox_main_r5_0: mbox-main-r5-0 {
[all …]
H A Dk3-am64-ti-ipc-firmware.dtsi67 mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
68 ti,mbox-rx = <0 0 2>;
69 ti,mbox-tx = <1 0 2>;
72 mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
73 ti,mbox-rx = <2 0 2>;
74 ti,mbox-tx = <3 0 2>;
81 mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 {
82 ti,mbox-rx = <0 0 2>;
83 ti,mbox-tx = <1 0 2>;
86 mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 {
[all …]
H A Dk3-j7200-ti-ipc-firmware.dtsi56 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
57 ti,mbox-rx = <0 0 0>;
58 ti,mbox-tx = <1 0 0>;
61 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
62 ti,mbox-rx = <2 0 0>;
63 ti,mbox-tx = <3 0 0>;
71 mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
72 ti,mbox-rx = <0 0 0>;
73 ti,mbox-tx = <1 0 0>;
76 mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
[all …]
H A Dk3-am62a-ti-ipc-firmware.dtsi37 mbox_r5_0: mbox-r5-0 {
38 ti,mbox-rx = <0 0 0>;
39 ti,mbox-tx = <1 0 0>;
46 mbox_c7x_0: mbox-c7x-0 {
47 ti,mbox-rx = <0 0 0>;
48 ti,mbox-tx = <1 0 0>;
55 mbox_mcu_r5_0: mbox-mcu-r5-0 {
56 ti,mbox-rx = <0 0 0>;
57 ti,mbox-tx = <1 0 0>;
H A Dk3-am62-ti-ipc-firmware.dtsi25 mbox_m4_0: mbox-m4-0 {
26 ti,mbox-rx = <0 0 0>;
27 ti,mbox-tx = <1 0 0>;
30 mbox_r5_0: mbox-r5-0 {
31 ti,mbox-rx = <2 0 0>;
32 ti,mbox-tx = <3 0 0>;
H A Dk3-am62p-ti-ipc-firmware.dtsi25 mbox_r5_0: mbox-r5-0 {
26 ti,mbox-rx = <0 0 0>;
27 ti,mbox-tx = <1 0 0>;
34 mbox_mcu_r5_0: mbox-mcu-r5-0 {
35 ti,mbox-rx = <0 0 0>;
36 ti,mbox-tx = <1 0 0>;
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_qp.c184 static int mbox_alloc(struct mbox_info *mbox, int inlen, int outlen) in mbox_alloc() argument
186 mbox->inlen = inlen; in mbox_alloc()
187 mbox->outlen = outlen; in mbox_alloc()
188 mbox->in = kzalloc(mbox->inlen, GFP_KERNEL); in mbox_alloc()
189 mbox->out = kzalloc(mbox->outlen, GFP_KERNEL); in mbox_alloc()
190 if (!mbox->in || !mbox->out) { in mbox_alloc()
191 kfree(mbox->in); in mbox_alloc()
192 kfree(mbox->out); in mbox_alloc()
199 static void mbox_free(struct mbox_info *mbox) in mbox_free() argument
201 kfree(mbox->in); in mbox_free()
[all …]
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_multicast.c60 osm_mgrp_box_t *mbox = malloc(sizeof(*mbox)); in mgrp_box_new() local
61 if (!mbox) in mgrp_box_new()
64 memset(mbox, 0, sizeof(*mbox)); in mgrp_box_new()
65 mbox->mlid = mlid; in mgrp_box_new()
66 cl_qlist_init(&mbox->mgrp_list); in mgrp_box_new()
68 return mbox; in mgrp_box_new()
71 void mgrp_box_delete(osm_mgrp_box_t *mbox) in mgrp_box_delete() argument
73 osm_mtree_destroy(mbox->root); in mgrp_box_delete()
74 free(mbox); in mgrp_box_delete()
107 void osm_mgrp_box_delete(osm_mgrp_box_t *mbox) in osm_mgrp_box_delete() argument
[all …]
/freebsd/usr.sbin/mfiutil/
H A Dmfi_drive.c223 mbox_store_device_id(uint8_t *mbox, uint16_t device_id) in mbox_store_device_id() argument
226 mbox[0] = device_id & 0xff; in mbox_store_device_id()
227 mbox[1] = device_id >> 8; in mbox_store_device_id()
231 mbox_store_pdref(uint8_t *mbox, union mfi_pd_ref *ref) in mbox_store_pdref() argument
234 mbox[0] = ref->v.device_id & 0xff; in mbox_store_pdref()
235 mbox[1] = ref->v.device_id >> 8; in mbox_store_pdref()
236 mbox[2] = ref->v.seq_num & 0xff; in mbox_store_pdref()
237 mbox[3] = ref->v.seq_num >> 8; in mbox_store_pdref()
275 uint8_t mbox[2]; in mfi_pd_get_info() local
277 mbox_store_device_id(&mbox[0], device_id); in mfi_pd_get_info()
[all …]
H A Dmfi_flash.c77 mbox_store_word(uint8_t *mbox, uint32_t val) in mbox_store_word() argument
80 mbox[0] = val & 0xff; in mbox_store_word()
81 mbox[1] = val >> 8 & 0xff; in mbox_store_word()
82 mbox[2] = val >> 16 & 0xff; in mbox_store_word()
83 mbox[3] = val >> 24; in mbox_store_word()
95 uint8_t mbox[4], status; in flash_adapter() local
131 mbox_store_word(mbox, sb.st_size); in flash_adapter()
132 if (mfi_dcmd_command(fd, MFI_DCMD_FLASH_FW_OPEN, NULL, 0, mbox, 4, in flash_adapter()
165 mbox_store_word(mbox, offset); in flash_adapter()
167 mbox, 4, &status) < 0) { in flash_adapter()
H A Dmfi_volume.c66 mbox_store_ldref(uint8_t *mbox, union mfi_ld_ref *ref) in mbox_store_ldref() argument
69 mbox[0] = ref->v.target_id; in mbox_store_ldref()
70 mbox[1] = ref->v.reserved; in mbox_store_ldref()
71 mbox[2] = ref->v.seq & 0xff; in mbox_store_ldref()
72 mbox[3] = ref->v.seq >> 8; in mbox_store_ldref()
87 uint8_t mbox[1]; in mfi_ld_get_info() local
89 mbox[0] = target_id; in mfi_ld_get_info()
91 sizeof(struct mfi_ld_info), mbox, 1, statusp)); in mfi_ld_get_info()
97 uint8_t mbox[1]; in mfi_ld_get_props() local
99 mbox[0] = target_id; in mfi_ld_get_props()
[all …]
H A Dmfi_foreign.c115 uint8_t mbox[4]; in foreign_show_cfg() local
117 bzero(mbox, sizeof(mbox)); in foreign_show_cfg()
118 mbox[0] = cfgidx; in foreign_show_cfg()
119 if (mfi_config_read_opcode(fd, opcode, &config, mbox, sizeof(mbox)) < 0) { in foreign_show_cfg()
288 uint8_t mbox[4]; in foreign_import() local
345 bzero(mbox, sizeof(mbox)); in foreign_import()
346 mbox[0] = cfgidx; in foreign_import()
347 if (mfi_dcmd_command(fd, MFI_DCMD_CFG_FOREIGN_IMPORT, NULL, 0, mbox, in foreign_import()
348 sizeof(mbox), NULL) < 0) { in foreign_import()
/freebsd/sys/contrib/device-tree/Bindings/mailbox/
H A Domap-mailbox.txt54 - #mbox-cells: Common mailbox binding property to identify the number
57 - ti,mbox-num-users: Number of targets (processor devices) that the mailbox
59 - ti,mbox-num-fifos: Number of h/w fifo queues within the mailbox IP block
87 - ti,mbox-tx: sub-mailbox descriptor property defining a Tx fifo
88 - ti,mbox-rx: sub-mailbox descriptor property defining a Rx fifo
92 Each of the above ti,mbox-tx and ti,mbox-rx properties should have 3 cells of
95 (ti,mbox-tx) or for receiving (ti,mbox-rx)
105 - ti,mbox-send-noirq: Quirk flag to allow the client user of this sub-mailbox
115 "mbox-names" (please see Documentation/devicetree/bindings/mailbox/mailbox.txt
119 "mbox-names" property value can be used to give a name to the communication channel
[all …]
H A Daltera-mailbox.txt8 - #mbox-cells: Common mailbox binding property to identify the number
21 #mbox-cells = <1>;
29 #mbox-cells = <1>;
34 "mboxes" and the optional "mbox-names" (please see
38 support only one channel).The equivalent "mbox-names" property value can be
45 mbox-names = "mbox-tx", "mbox-rx";
H A Dhisilicon,hi6220-mailbox.txt14 - compatible: Shall be "hisilicon,hi6220-mbox"
19 - #mbox-cells: Common mailbox binding property to identify the number
34 - hi6220,mbox-tx-noirq: Property of MCU firmware's feature, so mailbox driver
43 compatible = "hisilicon,hi6220-mbox";
48 #mbox-cells = <3>;
59 Cells must match 'mbox-cells' (See Mailbox Device Node above).
63 - mbox-names: Name given to channels seen in the 'mboxes' property.
72 mbox-names = "mbox-tx", "mbox-rx";
H A Dsti-mailbox.txt12 - mbox-name : Name of the mailbox
13 - #mbox-cells: : Must be 2
28 #mbox-cells = <2>;
29 mbox-name = "a9";
39 Cells must match 'mbox-cells' (See Controller docs above)
42 - mbox-names : Name given to channels seen in the 'mboxes' property.
50 mbox-names = "tx", "rx";
/freebsd/sys/dev/cxgbe/common/
H A Dcommon.h657 int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, const void *cmd,
659 int t4_wr_mbox_meat(struct adapter *adap, int mbox, const void *cmd, int size,
663 static inline int t4_wr_mbox_timeout(struct adapter *adap, int mbox, in t4_wr_mbox_timeout() argument
667 return t4_wr_mbox_meat_timeout(adap, mbox, cmd, size, rpl, true, in t4_wr_mbox_timeout()
671 static inline int t4_wr_mbox(struct adapter *adap, int mbox, const void *cmd, in t4_wr_mbox() argument
674 return t4_wr_mbox_meat(adap, mbox, cmd, size, rpl, true); in t4_wr_mbox()
677 static inline int t4_wr_mbox_ns(struct adapter *adap, int mbox, const void *cmd, in t4_wr_mbox_ns() argument
680 return t4_wr_mbox_meat(adap, mbox, cmd, size, rpl, false); in t4_wr_mbox_ns()
700 int t4_link_l1cfg(struct adapter *adap, unsigned int mbox, unsigned int port,
702 int t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigned int port);
[all …]
/freebsd/contrib/dma/
H A Dlocal.c136 int mbox; in deliver_local() local
153 mbox = open_locked(fn, O_WRONLY|O_APPEND); in deliver_local()
154 if (mbox < 0) { in deliver_local()
185 mboxlen = lseek(mbox, 0, SEEK_END); in deliver_local()
206 if (write(mbox, line, error) != error) in deliver_local()
233 if (write(mbox, gt, 1) != 1) in deliver_local()
241 if ((size_t)write(mbox, line, linelen) != linelen) in deliver_local()
244 close(mbox); in deliver_local()
251 if (ftruncate(mbox, mboxlen) != 0) in deliver_local()
254 close(mbox); in deliver_local()
/freebsd/sys/contrib/device-tree/src/arm/ti/omap/
H A Ddra72x.dtsi80 mbox_ipu1_ipc3x: mbox-ipu1-ipc3x {
81 ti,mbox-tx = <6 2 2>;
82 ti,mbox-rx = <4 2 2>;
85 mbox_dsp1_ipc3x: mbox-dsp1-ipc3x {
86 ti,mbox-tx = <5 2 2>;
87 ti,mbox-rx = <1 2 2>;
93 mbox_ipu2_ipc3x: mbox-ipu2-ipc3x {
94 ti,mbox-tx = <6 2 2>;
95 ti,mbox-rx = <4 2 2>;
H A Ddra74x.dtsi148 mbox_ipu1_ipc3x: mbox-ipu1-ipc3x {
149 ti,mbox-tx = <6 2 2>;
150 ti,mbox-rx = <4 2 2>;
153 mbox_dsp1_ipc3x: mbox-dsp1-ipc3x {
154 ti,mbox-tx = <5 2 2>;
155 ti,mbox-rx = <1 2 2>;
161 mbox_ipu2_ipc3x: mbox-ipu2-ipc3x {
162 ti,mbox-tx = <6 2 2>;
163 ti,mbox-rx = <4 2 2>;
166 mbox_dsp2_ipc3x: mbox-dsp2-ipc3x {
[all …]
/freebsd/sys/dev/aq/
H A Daq_fw1x.c165 struct aq_hw_fw_mbox mbox; in aq_fw1x_reset() local
172 err = aq_hw_fw_downld_dwords(hw, hw->mbox_addr, (uint32_t*)&mbox, in aq_fw1x_reset()
173 (uint32_t)((char*)&mbox.stats - (char*)&mbox) / sizeof(uint32_t)); in aq_fw1x_reset()
183 tid0 = mbox.transaction_id; in aq_fw1x_reset()
185 } else if (mbox.transaction_id != tid0) { in aq_fw1x_reset()
308 (uint32_t*)(void*)&hw->mbox, sizeof hw->mbox / sizeof(uint32_t)); in aq_fw1x_get_stats()
311 memcpy(stats, &hw->mbox.stats, sizeof hw->mbox.stats); in aq_fw1x_get_stats()
/freebsd/sys/dev/qlxge/
H A Dqls_hw.c2215 out_mbx[i] = ha->mbox[i]; in qls_mbx_cmd()
2242 uint32_t *mbox; in qls_mbx_set_mgmt_ctrl() local
2245 mbox = ha->mbox; in qls_mbx_set_mgmt_ctrl()
2246 bzero(mbox, (sizeof (uint32_t) * Q81_NUM_MBX_REGISTERS)); in qls_mbx_set_mgmt_ctrl()
2248 mbox[0] = Q81_MBX_SET_MGMT_CTL; in qls_mbx_set_mgmt_ctrl()
2249 mbox[1] = t_ctrl; in qls_mbx_set_mgmt_ctrl()
2251 if (qls_mbx_cmd(ha, mbox, 2, mbox, 1)) { in qls_mbx_set_mgmt_ctrl()
2256 if ((mbox[0] == Q81_MBX_CMD_COMPLETE) || in qls_mbx_set_mgmt_ctrl()
2258 (mbox[0] == Q81_MBX_CMD_ERROR))){ in qls_mbx_set_mgmt_ctrl()
2261 device_printf(dev, "%s failed [0x%08x]\n", __func__, mbox[0]); in qls_mbx_set_mgmt_ctrl()
[all …]

12345678910>>...12