Home
last modified time | relevance | path

Searched refs:msgbuf (Results 1 – 25 of 34) sorted by relevance

12

/Linux-v6.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dmsgbuf.c292 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 …]
DMakefile34 msgbuf.o
Dpcie.c2102 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/
Dvf.c68 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 …]
Dipsec.c21 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/
Dvf.c107 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/
Dssh_msgb.h24 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/
Dixgbe_sriov.c363 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 …]
Dixgbe_ipsec.c884 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/
Dmsgque.c175 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/
Di2c-slave-testunit.c50 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/
Dsunvdc.c334 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/
Dsmd-rpm.c161 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/
Dsunvnet_common.c643 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/
Dp80211netdev.c499 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()
Dp80211req.c114 int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf) in p80211req_dorequest() argument
116 struct p80211msg *msg = (struct p80211msg *)msgbuf; in p80211req_dorequest()
Dp80211req.h52 int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf);
/Linux-v6.1/init/
Dmain.c1296 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/
Dsyscall.c54 return ksys_msgsnd(first, (struct msgbuf __user *) ptr, in ksys_ipc()
72 (struct msgbuf __user *) ptr, in ksys_ipc()
Dmsg.c961 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/
Dipc.h59 struct msgbuf __user *msgp;
Dmsg.h38 struct msgbuf { struct
/Linux-v6.1/arch/loongarch/include/asm/
DKbuild17 generic-y += msgbuf.h
/Linux-v6.1/include/uapi/asm-generic/
DKbuild16 mandatory-y += msgbuf.h
/Linux-v6.1/drivers/net/ethernet/intel/igb/
Digb_main.c7166 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 …]

12