Searched refs:mbox (Results 1 - 25 of 49) sorted by relevance

12

/freebsd-current/libexec/dma/
H A DMakefile3 dma-mbox-create
/freebsd-current/libexec/dma/dma-mbox-create/
H A DMakefile6 PROG= dma-mbox-create
/freebsd-current/sys/dev/mlx5/mlx5_core/
H A Dmlx5_qp.c184 static int mbox_alloc(struct mbox_info *mbox, int inlen, int outlen) argument
186 mbox->inlen = inlen;
187 mbox->outlen = outlen;
188 mbox->in = kzalloc(mbox->inlen, GFP_KERNEL);
189 mbox->out = kzalloc(mbox->outlen, GFP_KERNEL);
190 if (!mbox->in || !mbox->out) {
191 kfree(mbox
199 mbox_free(struct mbox_info *mbox) argument
205 modify_qp_mbox_alloc(struct mlx5_core_dev *dev, u16 opcode, int qpn, u32 opt_param_mask, void *qpc, struct mbox_info *mbox, u16 uid) argument
294 struct mbox_info mbox; local
[all...]
/freebsd-current/contrib/dma/
H A Dlocal.c85 execl(LIBEXEC_PATH "/dma-mbox-create", "dma-mbox-create", name, (char *)NULL);
86 syslog(LOG_ERR, "cannot execute "LIBEXEC_PATH"/dma-mbox-create: %m");
98 syslog(LOG_ERR, "hung child while creating mbox `%s': %m", name);
103 syslog(LOG_ERR, "child disappeared while creating mbox `%s': %m", name);
108 syslog(LOG_ERR, "error creating mbox `%s'", name);
118 syslog(LOG_ERR, "error creating mbox");
136 int mbox; local
153 mbox = open_locked(fn, O_WRONLY|O_APPEND);
154 if (mbox <
[all...]
H A DMakefile44 all: dma dma-mbox-create
47 -rm -f .depend dma dma-mbox-create *.[do]
54 ${INSTALL} -m 4754 -o root -g mail dma-mbox-create ${DESTDIR}${LIBEXEC}
/freebsd-current/usr.sbin/mfiutil/
H A Dmfi_flash.c77 mbox_store_word(uint8_t *mbox, uint32_t val) argument
80 mbox[0] = val & 0xff;
81 mbox[1] = val >> 8 & 0xff;
82 mbox[2] = val >> 16 & 0xff;
83 mbox[3] = val >> 24;
95 uint8_t mbox[4], status; local
131 mbox_store_word(mbox, sb.st_size);
132 mfi_dcmd_command(fd, MFI_DCMD_FLASH_FW_OPEN, NULL, 0, mbox, 4, &status);
157 mbox_store_word(mbox, offset);
159 mbox,
[all...]
H A Dmfi_foreign.c115 uint8_t mbox[4]; local
117 bzero(mbox, sizeof(mbox));
118 mbox[0] = cfgidx;
119 if (mfi_config_read_opcode(fd, opcode, &config, mbox, sizeof(mbox)) < 0) {
288 uint8_t mbox[4]; local
345 bzero(mbox, sizeof(mbox));
346 mbox[
[all...]
H A Dmfi_drive.c233 mbox_store_device_id(uint8_t *mbox, uint16_t device_id) argument
236 mbox[0] = device_id & 0xff;
237 mbox[1] = device_id >> 8;
241 mbox_store_pdref(uint8_t *mbox, union mfi_pd_ref *ref) argument
244 mbox[0] = ref->v.device_id & 0xff;
245 mbox[1] = ref->v.device_id >> 8;
246 mbox[2] = ref->v.seq_num & 0xff;
247 mbox[3] = ref->v.seq_num >> 8;
285 uint8_t mbox[2]; local
287 mbox_store_device_id(&mbox[
386 uint8_t mbox[6]; local
495 uint8_t mbox[4]; local
552 uint8_t mbox[4]; local
662 uint8_t mbox[4]; local
725 uint8_t mbox[4]; local
[all...]
H A Dmfi_volume.c66 mbox_store_ldref(uint8_t *mbox, union mfi_ld_ref *ref) argument
69 mbox[0] = ref->v.target_id;
70 mbox[1] = ref->v.reserved;
71 mbox[2] = ref->v.seq & 0xff;
72 mbox[3] = ref->v.seq >> 8;
87 uint8_t mbox[1]; local
89 mbox[0] = target_id;
91 sizeof(struct mfi_ld_info), mbox, 1, statusp));
97 uint8_t mbox[1]; local
99 mbox[
107 uint8_t mbox[4]; local
[all...]
H A Dmfi_cmd.c266 uint8_t *mbox, size_t mboxlen, uint8_t *statusp)
272 if ((mbox != NULL && (mboxlen == 0 || mboxlen > MFI_MBOX_SIZE)) ||
273 (mbox == NULL && mboxlen != 0)) {
280 if (mbox)
281 bcopy(mbox, dcmd->mbox, mboxlen);
265 mfi_dcmd_command(int fd, uint32_t opcode, void *buf, size_t bufsize, uint8_t *mbox, size_t mboxlen, uint8_t *statusp) argument
H A Dmfiutil.h140 void mbox_store_ldref(uint8_t *mbox, union mfi_ld_ref *ref);
141 void mbox_store_pdref(uint8_t *mbox, union mfi_pd_ref *ref);
153 struct mfi_config_data **configp, uint8_t *mbox, size_t mboxlen);
157 uint8_t *mbox, size_t mboxlen, uint8_t *statusp);
/freebsd-current/usr.bin/from/
H A Dfrom.c48 FILE *mbox; local
99 mbox = stdin;
101 else if ((mbox = fopen(file, "r")) == NULL) {
104 for (newline = 1; fgets(buf, sizeof(buf), mbox);) {
121 fclose(mbox);
/freebsd-current/contrib/ofed/opensm/opensm/
H A Dosm_multicast.c60 osm_mgrp_box_t *mbox = malloc(sizeof(*mbox)); local
61 if (!mbox)
64 memset(mbox, 0, sizeof(*mbox));
65 mbox->mlid = mlid;
66 cl_qlist_init(&mbox->mgrp_list);
68 return mbox;
71 void mgrp_box_delete(osm_mgrp_box_t *mbox) argument
73 osm_mtree_destroy(mbox
107 osm_mgrp_box_delete(osm_mgrp_box_t *mbox) argument
123 osm_mgrp_box_t *mbox; local
153 osm_mgrp_box_t *mbox; local
[all...]
H A Dosm_mcast_mgr.c89 osm_mgrp_box_t * mbox)
100 for (list_item = cl_qlist_head(&mbox->mgrp_list);
101 list_item != cl_qlist_end(&mbox->mgrp_list);
131 void osm_purge_mtree(osm_sm_t * sm, IN osm_mgrp_box_t * mbox) argument
135 if (mbox->root)
136 osm_mtree_destroy(mbox->root);
137 mbox->root = NULL;
742 osm_mgrp_box_t * mbox)
759 osm_purge_mtree(sm, mbox);
762 if (osm_mcast_make_port_list_and_map(&port_list, &port_map, mbox)) {
88 osm_mcast_make_port_list_and_map(cl_qlist_t * list, cl_qmap_t * map, osm_mgrp_box_t * mbox) argument
741 mcast_mgr_build_spanning_tree(osm_sm_t * sm, osm_mgrp_box_t * mbox) argument
1012 osm_mgrp_box_t *mbox; local
[all...]
/freebsd-current/contrib/ofed/opensm/include/opensm/
H A Dosm_mcast_mgr.h65 osm_mgrp_box_t * mbox);
/freebsd-current/sys/dev/cxgbe/common/
H A Dcommon.h584 int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, const void *cmd,
586 int t4_wr_mbox_meat(struct adapter *adap, int mbox, const void *cmd, int size,
590 static inline int t4_wr_mbox_timeout(struct adapter *adap, int mbox, argument
594 return t4_wr_mbox_meat_timeout(adap, mbox, cmd, size, rpl, true,
598 static inline int t4_wr_mbox(struct adapter *adap, int mbox, const void *cmd, argument
601 return t4_wr_mbox_meat(adap, mbox, cmd, size, rpl, true);
604 static inline int t4_wr_mbox_ns(struct adapter *adap, int mbox, const void *cmd, argument
607 return t4_wr_mbox_meat(adap, mbox, cmd, size, rpl, false);
626 int t4_link_l1cfg(struct adapter *adap, unsigned int mbox, unsigned int port,
628 int t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigne
[all...]
H A Dt4_hw.c302 * @mbox: index of the mailbox to use
326 int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, const void *cmd, argument
340 u32 data_reg = PF_REG(mbox, A_CIM_PF_MAILBOX_DATA);
341 u32 ctl_reg = PF_REG(mbox, A_CIM_PF_MAILBOX_CTRL);
406 CH_DUMP_MBOX(adap, mbox, data_reg, "VLD", NULL, true);
414 CH_DUMP_MBOX(adap, mbox, 0, "cmd", cmd_rpl, false);
479 CH_DUMP_MBOX(adap, mbox, 0, "rpl", cmd_rpl, false);
497 CH_ERR(adap, "command %#x in mbox %d timed out (0x%08x).\n",
498 *(const u8 *)cmd, mbox, pcie_fw);
499 CH_DUMP_MBOX(adap, mbox,
508 t4_wr_mbox_meat(struct adapter *adap, int mbox, const void *cmd, int size, void *rpl, bool sleep_ok) argument
3878 t4_link_l1cfg(struct adapter *adap, unsigned int mbox, unsigned int port, struct link_config *lc) argument
4023 t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigned int port) argument
5491 t4_config_rss_range(struct adapter *adapter, int mbox, unsigned int viid, int start, int n, const u16 *rspq, unsigned int nrspq) argument
5579 t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode, unsigned int flags) argument
5612 t4_config_vi_rss(struct adapter *adapter, int mbox, unsigned int viid, unsigned int flags, unsigned int defq, unsigned int skeyidx, unsigned int skey) argument
7129 t4_fwaddrspace_write(struct adapter *adap, unsigned int mbox, u32 addr, u32 val) argument
7159 t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, unsigned int mmd, unsigned int reg, unsigned int *valp) argument
7193 t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, unsigned int mmd, unsigned int reg, unsigned int val) argument
7378 t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox, int ctxt_type) argument
7409 t4_fw_hello(struct adapter *adap, unsigned int mbox, unsigned int evt_mbox, enum dev_master master, enum dev_state *state) argument
7533 t4_fw_bye(struct adapter *adap, unsigned int mbox) argument
7550 t4_fw_reset(struct adapter *adap, unsigned int mbox, int reset) argument
7576 t4_fw_halt(struct adapter *adap, unsigned int mbox, int force) argument
7628 t4_fw_restart(struct adapter *adap, unsigned int mbox) argument
7664 t4_fw_upgrade(struct adapter *adap, unsigned int mbox, const u8 *fw_data, unsigned int size, int force) argument
7696 t4_fw_initialize(struct adapter *adap, unsigned int mbox) argument
7719 t4_query_params_rw(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int nparams, const u32 *params, u32 *val, int rw) argument
7760 t4_query_params(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int nparams, const u32 *params, u32 *val) argument
7781 t4_set_params_timeout(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int nparams, const u32 *params, const u32 *val, int timeout) argument
7820 t4_set_params(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int nparams, const u32 *params, const u32 *val) argument
7849 t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int txq, unsigned int txq_eth_ctrl, unsigned int rxqi, unsigned int rxq, unsigned int tc, unsigned int vi, unsigned int cmask, unsigned int pmask, unsigned int nexact, unsigned int rcaps, unsigned int wxcaps) argument
7896 t4_alloc_vi_func(struct adapter *adap, unsigned int mbox, unsigned int port, unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac, u16 *rss_size, uint8_t *vfvld, uint16_t *vin, unsigned int portfunc, unsigned int idstype) argument
7966 t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port, unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac, u16 *rss_size, uint8_t *vfvld, uint16_t *vin) argument
7984 t4_free_vi(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int viid) argument
8015 t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid, int mtu, int promisc, int all_multi, int bcast, int vlanex, bool sleep_ok) argument
8174 t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox, unsigned int viid, bool free, unsigned int naddr, const u8 **addr, u16 *idx, u64 *hash, bool sleep_ok) argument
8347 t4_free_mac_filt(struct adapter *adap, unsigned int mbox, unsigned int viid, unsigned int naddr, const u8 **addr, bool sleep_ok) argument
8429 t4_change_mac(struct adapter *adap, unsigned int mbox, unsigned int viid, int idx, const u8 *addr, bool persist, uint16_t *smt_idx) argument
8481 t4_set_addr_hash(struct adapter *adap, unsigned int mbox, unsigned int viid, bool ucast, u64 vec, bool sleep_ok) argument
8510 t4_enable_vi_params(struct adapter *adap, unsigned int mbox, unsigned int viid, bool rx_en, bool tx_en, bool dcb_en) argument
8537 t4_enable_vi(struct adapter *adap, unsigned int mbox, unsigned int viid, bool rx_en, bool tx_en) argument
8552 t4_identify_port(struct adapter *adap, unsigned int mbox, unsigned int viid, unsigned int nblinks) argument
8581 t4_iq_stop(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int iqtype, unsigned int iqid, unsigned int fl0id, unsigned int fl1id) argument
8612 t4_iq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int iqtype, unsigned int iqid, unsigned int fl0id, unsigned int fl1id) argument
8641 t4_eth_eq_stop(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int eqid) argument
8666 t4_eth_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int eqid) argument
8691 t4_ctrl_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int eqid) argument
8716 t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int eqid) argument
9807 t4_port_init(struct adapter *adap, int mbox, int pf, int vf, int port_id) argument
10975 t4_i2c_io(struct adapter *adap, unsigned int mbox, int port, unsigned int devid, unsigned int offset, unsigned int len, u8 *buf, bool write) argument
11025 t4_i2c_rd(struct adapter *adap, unsigned int mbox, int port, unsigned int devid, unsigned int offset, unsigned int len, u8 *buf) argument
11033 t4_i2c_wr(struct adapter *adap, unsigned int mbox, int port, unsigned int devid, unsigned int offset, unsigned int len, u8 *buf) argument
11051 t4_sge_ctxt_rd(struct adapter *adap, unsigned int mbox, unsigned int cid, enum ctxt_type ctype, u32 *data) argument
11244 t4_config_watchdog(struct adapter *adapter, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int timeout, unsigned int action) argument
11380 t4_set_vlan_acl(struct adapter *adap, unsigned int mbox, unsigned int vf, u16 vlan) argument
11423 t4_del_mac(struct adapter *adap, unsigned int mbox, unsigned int viid, const u8 *addr, bool smac) argument
11472 t4_add_mac(struct adapter *adap, unsigned int mbox, unsigned int viid, int idx, const u8 *addr, bool persist, u8 *smt_idx, bool smac) argument
[all...]
/freebsd-current/sys/arm/broadcom/bcm2835/
H A Dbcm2835_firmware.c80 phandle_t node, mbox; local
86 rv = OF_getencprop(node, "mboxes", &mbox, sizeof(mbox));
91 sc->sc_mbox = mbox;
180 MODULE_DEPEND(bcm2835_firmware, mbox, 1, 1, 1);
H A Dbcm2835_mbox.c96 {"broadcom,bcm2835-mbox", 1},
97 {"brcm,bcm2835-mbox", 1},
190 mtx_init(&sc->lock, "vcio mbox", NULL, MTX_DEF);
245 "mbox", 10*hz) != 0) {
287 "mbox",
292 EARLY_DRIVER_MODULE(mbox, simplebus, bcm_mbox_driver, 0, 0,
353 device_printf(dev, "mbox response error\n");
383 device_printf(dev, "mbox buffer size error\n");
400 device_t mbox; local
403 /* get mbox devic
[all...]
H A Dbcm2835_vcio.c116 MODULE_DEPEND(vcio, mbox, 1, 1, 1);
/freebsd-current/sys/dev/qlxge/
H A Dqls_hw.c2216 out_mbx[i] = ha->mbox[i];
2243 uint32_t *mbox; local
2246 mbox = ha->mbox;
2247 bzero(mbox, (sizeof (uint32_t) * Q81_NUM_MBX_REGISTERS));
2249 mbox[0] = Q81_MBX_SET_MGMT_CTL;
2250 mbox[1] = t_ctrl;
2252 if (qls_mbx_cmd(ha, mbox, 2, mbox, 1)) {
2257 if ((mbox[
2270 uint32_t *mbox; local
2293 uint32_t *mbox; local
2321 uint32_t *mbox; local
2343 uint32_t *mbox; local
[all...]
/freebsd-current/usr.bin/mail/
H A Dquit.c58 * Save all of the undetermined messages at the top of "mbox"
70 char *mbox, tempname[PATHSIZE]; local
88 * See if there any messages to save in mbox. If no, we
89 * can save copying mbox to /tmp and back.
92 * Delete all untouched messages to keep them out of mbox.
187 * Create another temporary file and copy user's mbox file
188 * darin. If there is no mbox, copy nothing.
193 mbox = expand("&");
212 if ((abuf = Fopen(mbox, "r")) != NULL) {
225 if ((fd = open(mbox, O_CREA
[all...]
/freebsd-current/sys/dev/qlxgbe/
H A Dql_hw.c1508 uint32_t *mbox, err; local
1511 bzero(ha->hw.mbox, (sizeof (uint32_t) * Q8_NUM_MBOX));
1513 mbox = ha->hw.mbox;
1515 mbox[0] = Q8_MBX_GET_NIC_PARTITION | (0x2 << 16) | (0x2 << 29);
1517 if (qla_mbx_cmd(ha, mbox, 2, mbox, 19, 0)) {
1521 err = mbox[0] >> 25;
1524 if (mbox[16] & 0x80) /* bit 7 of mbox 1
[all...]
/freebsd-current/targets/pseudo/userland/libexec/
H A DMakefile.depend47 DIRDEPS+= libexec/dma/dma-mbox-create
/freebsd-current/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.c525 device_t mbox; local
527 mbox = devclass_get_device(devclass_find("mbox"), 0);
529 if (mbox)
530 MBOX_WRITE(mbox, channel, data);

Completed in 178 milliseconds

12