/Linux-v6.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | msgbuf.c | 292 static void brcmf_msgbuf_rxbuf_ioctlresp_post(struct brcmf_msgbuf *msgbuf); 417 static void brcmf_msgbuf_release_pktids(struct brcmf_msgbuf *msgbuf) in brcmf_msgbuf_release_pktids() argument 419 if (msgbuf->rx_pktids) in brcmf_msgbuf_release_pktids() 420 brcmf_msgbuf_release_array(msgbuf->drvr->bus_if->dev, in brcmf_msgbuf_release_pktids() 421 msgbuf->rx_pktids); in brcmf_msgbuf_release_pktids() 422 if (msgbuf->tx_pktids) in brcmf_msgbuf_release_pktids() 423 brcmf_msgbuf_release_array(msgbuf->drvr->bus_if->dev, in brcmf_msgbuf_release_pktids() 424 msgbuf->tx_pktids); in brcmf_msgbuf_release_pktids() 431 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_tx_ioctl() local 438 commonring = msgbuf->commonrings[BRCMF_H2D_MSGRING_CONTROL_SUBMIT]; in brcmf_msgbuf_tx_ioctl() [all …]
|
D | Makefile | 34 msgbuf.o
|
D | pcie.c | 2102 bus->msgbuf->commonrings[i] = in brcmf_pcie_setup() 2112 bus->msgbuf->flowrings = flowrings; in brcmf_pcie_setup() 2114 bus->msgbuf->rx_dataoffset = devinfo->shared.rx_dataoffset; in brcmf_pcie_setup() 2115 bus->msgbuf->max_rxbufpost = devinfo->shared.max_rxbufpost; in brcmf_pcie_setup() 2116 bus->msgbuf->max_flowrings = devinfo->shared.max_flowrings; in brcmf_pcie_setup() 2253 bus->msgbuf = kzalloc(sizeof(*bus->msgbuf), GFP_KERNEL); in brcmf_pcie_probe() 2254 if (!bus->msgbuf) { in brcmf_pcie_probe() 2297 kfree(bus->msgbuf); in brcmf_pcie_probe() 2335 kfree(bus->msgbuf->flowrings); in brcmf_pcie_remove() 2336 kfree(bus->msgbuf); in brcmf_pcie_remove()
|
/Linux-v6.1/drivers/net/ethernet/intel/ixgbevf/ |
D | vf.c | 68 u32 msgbuf[IXGBE_VF_PERMADDR_MSG_LEN]; in ixgbevf_reset_hw_vf() local 69 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbevf_reset_hw_vf() 96 msgbuf[0] = IXGBE_VF_RESET; in ixgbevf_reset_hw_vf() 97 ixgbevf_write_mbx(hw, msgbuf, 1); in ixgbevf_reset_hw_vf() 105 ret_val = ixgbevf_poll_mbx(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN); in ixgbevf_reset_hw_vf() 113 if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_SUCCESS) && in ixgbevf_reset_hw_vf() 114 msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_FAILURE)) in ixgbevf_reset_hw_vf() 117 if (msgbuf[0] == (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_SUCCESS)) in ixgbevf_reset_hw_vf() 120 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; in ixgbevf_reset_hw_vf() 252 u32 msgbuf[3], msgbuf_chk; in ixgbevf_set_uc_addr_vf() local [all …]
|
D | ipsec.c | 21 u32 msgbuf[IXGBE_VFMAILBOX_SIZE] = { 0 }; in ixgbevf_ipsec_set_pf_sa() local 27 sam = (struct sa_mbx_msg *)(&msgbuf[1]); in ixgbevf_ipsec_set_pf_sa() 39 msgbuf[0] = IXGBE_VF_IPSEC_ADD; in ixgbevf_ipsec_set_pf_sa() 43 ret = ixgbevf_write_mbx(hw, msgbuf, IXGBE_VFMAILBOX_SIZE); in ixgbevf_ipsec_set_pf_sa() 47 ret = ixgbevf_poll_mbx(hw, msgbuf, 2); in ixgbevf_ipsec_set_pf_sa() 51 ret = (int)msgbuf[1]; in ixgbevf_ipsec_set_pf_sa() 52 if (msgbuf[0] & IXGBE_VT_MSGTYPE_FAILURE && ret >= 0) in ixgbevf_ipsec_set_pf_sa() 71 u32 msgbuf[2]; in ixgbevf_ipsec_del_pf_sa() local 74 memset(msgbuf, 0, sizeof(msgbuf)); in ixgbevf_ipsec_del_pf_sa() 75 msgbuf[0] = IXGBE_VF_IPSEC_DEL; in ixgbevf_ipsec_del_pf_sa() [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/igbvf/ |
D | vf.c | 107 u32 msgbuf[3]; in e1000_reset_hw_vf() local 108 u8 *addr = (u8 *)(&msgbuf[1]); in e1000_reset_hw_vf() 126 msgbuf[0] = E1000_VF_RESET; in e1000_reset_hw_vf() 127 mbx->ops.write_posted(hw, msgbuf, 1); in e1000_reset_hw_vf() 132 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_reset_hw_vf() 134 if (msgbuf[0] == (E1000_VF_RESET | in e1000_reset_hw_vf() 206 u32 msgbuf[E1000_VFMAILBOX_SIZE]; in e1000_update_mc_addr_list_vf() local 207 u16 *hash_list = (u16 *)&msgbuf[1]; in e1000_update_mc_addr_list_vf() 222 msgbuf[0] = E1000_VF_SET_MULTICAST; in e1000_update_mc_addr_list_vf() 223 msgbuf[0] |= cnt << E1000_VT_MSGINFO_SHIFT; in e1000_update_mc_addr_list_vf() [all …]
|
/Linux-v6.1/drivers/platform/surface/aggregator/ |
D | ssh_msgb.h | 24 struct msgbuf { struct 39 static inline void msgb_init(struct msgbuf *msgb, u8 *ptr, size_t cap) in msgb_init() argument 50 static inline size_t msgb_bytes_used(const struct msgbuf *msgb) in msgb_bytes_used() 55 static inline void __msgb_push_u8(struct msgbuf *msgb, u8 value) in __msgb_push_u8() 61 static inline void __msgb_push_u16(struct msgbuf *msgb, u16 value) in __msgb_push_u16() 72 static inline void msgb_push_u16(struct msgbuf *msgb, u16 value) in msgb_push_u16() 84 static inline void msgb_push_syn(struct msgbuf *msgb) in msgb_push_syn() 95 static inline void msgb_push_buf(struct msgbuf *msgb, const u8 *buf, size_t len) in msgb_push_buf() 106 static inline void msgb_push_crc(struct msgbuf *msgb, const u8 *buf, size_t len) in msgb_push_crc() 118 static inline void msgb_push_frame(struct msgbuf *msgb, u8 ty, u16 len, u8 seq) in msgb_push_frame() [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.c | 363 u32 *msgbuf, u32 vf) in ixgbe_set_vf_multicasts() argument 365 int entries = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) in ixgbe_set_vf_multicasts() 367 u16 *hash_list = (u16 *)&msgbuf[1]; in ixgbe_set_vf_multicasts() 884 u32 msgbuf[4] = {0, 0, 0, 0}; in ixgbe_vf_reset_msg() local 885 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbe_vf_reset_msg() 930 msgbuf[0] = IXGBE_VF_RESET; in ixgbe_vf_reset_msg() 932 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_vf_reset_msg() 935 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_vf_reset_msg() 942 msgbuf[3] = hw->mac.mc_filter_type; in ixgbe_vf_reset_msg() 943 ixgbe_write_mbx(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN, vf); in ixgbe_vf_reset_msg() [all …]
|
D | ixgbe_ipsec.c | 884 int ixgbe_ipsec_vf_add_sa(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf) in ixgbe_ipsec_vf_add_sa() argument 895 sam = (struct sa_mbx_msg *)(&msgbuf[1]); in ixgbe_ipsec_vf_add_sa() 963 msgbuf[1] = xs->xso.offload_handle; in ixgbe_ipsec_vf_add_sa() 972 msgbuf[1] = err; in ixgbe_ipsec_vf_add_sa() 994 int ixgbe_ipsec_vf_del_sa(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf) in ixgbe_ipsec_vf_del_sa() argument 998 u32 pfsa = msgbuf[1]; in ixgbe_ipsec_vf_del_sa()
|
/Linux-v6.1/tools/testing/selftests/ipc/ |
D | msgque.c | 175 struct msg1 msgbuf; in fill_msgque() local 177 msgbuf.mtype = MSG_TYPE; in fill_msgque() 178 memcpy(msgbuf.mtext, TEST_STRING, sizeof(TEST_STRING)); in fill_msgque() 179 if (msgsnd(msgque->msq_id, &msgbuf.mtype, sizeof(TEST_STRING), in fill_msgque() 185 msgbuf.mtype = ANOTHER_MSG_TYPE; in fill_msgque() 186 memcpy(msgbuf.mtext, ANOTHER_TEST_STRING, sizeof(ANOTHER_TEST_STRING)); in fill_msgque() 187 if (msgsnd(msgque->msq_id, &msgbuf.mtype, sizeof(ANOTHER_TEST_STRING), in fill_msgque()
|
/Linux-v6.1/drivers/i2c/ |
D | i2c-slave-testunit.c | 50 u8 msgbuf[256]; in i2c_slave_testunit_work() local 54 msg.buf = msgbuf; in i2c_slave_testunit_work() 67 msgbuf[0] = tu->client->addr; in i2c_slave_testunit_work() 68 msgbuf[1] = tu->regs[TU_REG_DATAL]; in i2c_slave_testunit_work() 69 msgbuf[2] = tu->regs[TU_REG_DATAH]; in i2c_slave_testunit_work()
|
/Linux-v6.1/drivers/block/ |
D | sunvdc.c | 334 static int vdc_ack(struct vdc_port *port, void *msgbuf) in vdc_ack() argument 337 struct vio_dring_data *pkt = msgbuf; in vdc_ack() 349 static int vdc_nack(struct vdc_port *port, void *msgbuf) in vdc_nack() argument 385 } msgbuf; in vdc_event() local 387 err = ldc_read(vio->lp, &msgbuf, sizeof(msgbuf)); in vdc_event() 396 msgbuf.tag.type, in vdc_event() 397 msgbuf.tag.stype, in vdc_event() 398 msgbuf.tag.stype_env, in vdc_event() 399 msgbuf.tag.sid); in vdc_event() 400 err = vio_validate_sid(vio, &msgbuf.tag); in vdc_event() [all …]
|
/Linux-v6.1/drivers/soc/qcom/ |
D | smd-rpm.c | 161 char msgbuf[32]; in qcom_smd_rpm_callback() local 178 len = min_t(u32, ALIGN(msg_length, 4), sizeof(msgbuf)); in qcom_smd_rpm_callback() 179 memcpy_fromio(msgbuf, msg->message, len); in qcom_smd_rpm_callback() 180 msgbuf[len - 1] = 0; in qcom_smd_rpm_callback() 182 if (!strcmp(msgbuf, "resource does not exist")) in qcom_smd_rpm_callback()
|
/Linux-v6.1/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 643 static int vnet_rx(struct vnet_port *port, void *msgbuf, int *npkts, in vnet_rx() argument 646 struct vio_dring_data *pkt = msgbuf; in vnet_rx() 685 static int vnet_ack(struct vnet_port *port, void *msgbuf) in vnet_ack() argument 688 struct vio_dring_data *pkt = msgbuf; in vnet_ack() 734 static int vnet_nack(struct vnet_port *port, void *msgbuf) in vnet_nack() argument 740 static int handle_mcast(struct vnet_port *port, void *msgbuf) in handle_mcast() argument 742 struct vio_net_mcast_info *pkt = msgbuf; in handle_mcast() 839 } msgbuf; in vnet_event_napi() local 843 (struct vio_dring_data *)&msgbuf; in vnet_event_napi() 855 err = ldc_read(vio->lp, &msgbuf, sizeof(msgbuf)); in vnet_event_napi() [all …]
|
/Linux-v6.1/drivers/staging/wlan-ng/ |
D | p80211netdev.c | 499 u8 *msgbuf; in p80211knetdev_siocdevprivate() local 520 msgbuf = memdup_user(data, req->len); in p80211knetdev_siocdevprivate() 521 if (IS_ERR(msgbuf)) { in p80211knetdev_siocdevprivate() 522 result = PTR_ERR(msgbuf); in p80211knetdev_siocdevprivate() 526 result = p80211req_dorequest(wlandev, msgbuf); in p80211knetdev_siocdevprivate() 529 if (copy_to_user(data, msgbuf, req->len)) in p80211knetdev_siocdevprivate() 532 kfree(msgbuf); in p80211knetdev_siocdevprivate()
|
D | p80211req.c | 114 int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf) in p80211req_dorequest() argument 116 struct p80211msg *msg = (struct p80211msg *)msgbuf; in p80211req_dorequest()
|
D | p80211req.h | 52 int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf);
|
/Linux-v6.1/init/ |
D | main.c | 1296 char msgbuf[64]; in do_one_initcall() local 1306 msgbuf[0] = 0; in do_one_initcall() 1309 sprintf(msgbuf, "preemption imbalance "); in do_one_initcall() 1313 strlcat(msgbuf, "disabled interrupts ", sizeof(msgbuf)); in do_one_initcall() 1316 WARN(msgbuf[0], "initcall %pS returned with %s\n", fn, msgbuf); in do_one_initcall()
|
/Linux-v6.1/ipc/ |
D | syscall.c | 54 return ksys_msgsnd(first, (struct msgbuf __user *) ptr, in ksys_ipc() 72 (struct msgbuf __user *) ptr, in ksys_ipc()
|
D | msg.c | 961 long ksys_msgsnd(int msqid, struct msgbuf __user *msgp, size_t msgsz, in ksys_msgsnd() 971 SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, in SYSCALL_DEFINE4() 1028 struct msgbuf __user *msgp = dest; in do_msg_fill() 1264 long ksys_msgrcv(int msqid, struct msgbuf __user *msgp, size_t msgsz, in ksys_msgrcv() 1270 SYSCALL_DEFINE5(msgrcv, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, in SYSCALL_DEFINE5()
|
/Linux-v6.1/include/uapi/linux/ |
D | ipc.h | 59 struct msgbuf __user *msgp;
|
D | msg.h | 38 struct msgbuf { struct
|
/Linux-v6.1/arch/loongarch/include/asm/ |
D | Kbuild | 17 generic-y += msgbuf.h
|
/Linux-v6.1/include/uapi/asm-generic/ |
D | Kbuild | 16 mandatory-y += msgbuf.h
|
/Linux-v6.1/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 7166 static int igb_set_vf_promisc(struct igb_adapter *adapter, u32 *msgbuf, u32 vf) in igb_set_vf_promisc() argument 7176 if (*msgbuf & E1000_VF_SET_PROMISC_MULTICAST) { in igb_set_vf_promisc() 7179 *msgbuf &= ~E1000_VF_SET_PROMISC_MULTICAST; in igb_set_vf_promisc() 7199 if (*msgbuf & E1000_VT_MSGINFO_MASK) in igb_set_vf_promisc() 7206 u32 *msgbuf, u32 vf) in igb_set_vf_multicasts() argument 7208 int n = (msgbuf[0] & E1000_VT_MSGINFO_MASK) >> E1000_VT_MSGINFO_SHIFT; in igb_set_vf_multicasts() 7209 u16 *hash_list = (u16 *)&msgbuf[1]; in igb_set_vf_multicasts() 7466 static int igb_set_vf_vlan_msg(struct igb_adapter *adapter, u32 *msgbuf, u32 vf) in igb_set_vf_vlan_msg() argument 7468 int add = (msgbuf[0] & E1000_VT_MSGINFO_MASK) >> E1000_VT_MSGINFO_SHIFT; in igb_set_vf_vlan_msg() 7469 int vid = (msgbuf[1] & E1000_VLVF_VLANID_MASK); in igb_set_vf_vlan_msg() [all …]
|