Home
last modified time | relevance | path

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

12

/linux-3.4.99/drivers/net/ethernet/intel/ixgbevf/
Dvf.c76 u32 msgbuf[IXGBE_VF_PERMADDR_MSG_LEN]; in ixgbevf_reset_hw_vf() local
77 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbevf_reset_hw_vf()
97 msgbuf[0] = IXGBE_VF_RESET; in ixgbevf_reset_hw_vf()
98 mbx->ops.write_posted(hw, msgbuf, 1); in ixgbevf_reset_hw_vf()
105 ret_val = mbx->ops.read_posted(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN); in ixgbevf_reset_hw_vf()
109 if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK)) in ixgbevf_reset_hw_vf()
113 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; in ixgbevf_reset_hw_vf()
223 u32 msgbuf[3]; in ixgbevf_set_uc_addr_vf() local
224 u8 *msg_addr = (u8 *)(&msgbuf[1]); in ixgbevf_set_uc_addr_vf()
227 memset(msgbuf, 0, sizeof(msgbuf)); in ixgbevf_set_uc_addr_vf()
[all …]
/linux-3.4.99/drivers/net/ethernet/intel/igbvf/
Dvf.c129 u32 msgbuf[3]; in e1000_reset_hw_vf() local
130 u8 *addr = (u8 *)(&msgbuf[1]); in e1000_reset_hw_vf()
148 msgbuf[0] = E1000_VF_RESET; in e1000_reset_hw_vf()
149 mbx->ops.write_posted(hw, msgbuf, 1); in e1000_reset_hw_vf()
154 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_reset_hw_vf()
156 if (msgbuf[0] == (E1000_VF_RESET | E1000_VT_MSGTYPE_ACK)) in e1000_reset_hw_vf()
228 u32 msgbuf[E1000_VFMAILBOX_SIZE]; in e1000_update_mc_addr_list_vf() local
229 u16 *hash_list = (u16 *)&msgbuf[1]; in e1000_update_mc_addr_list_vf()
243 msgbuf[0] = E1000_VF_SET_MULTICAST; in e1000_update_mc_addr_list_vf()
244 msgbuf[0] |= cnt << E1000_VT_MSGINFO_SHIFT; in e1000_update_mc_addr_list_vf()
[all …]
/linux-3.4.99/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c299 static void ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf) in ixgbe_set_vf_lpe() argument
302 int new_mtu = msgbuf[1]; in ixgbe_set_vf_lpe()
537 u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; in ixgbe_rcv_msg_from_vf() local
545 retval = ixgbe_read_mbx(hw, msgbuf, mbx_size, vf); in ixgbe_rcv_msg_from_vf()
551 if (msgbuf[0] & (IXGBE_VT_MSGTYPE_ACK | IXGBE_VT_MSGTYPE_NACK)) in ixgbe_rcv_msg_from_vf()
559 if (msgbuf[0] == IXGBE_VF_RESET) { in ixgbe_rcv_msg_from_vf()
561 new_mac = (u8 *)(&msgbuf[1]); in ixgbe_rcv_msg_from_vf()
575 msgbuf[0] = IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK; in ixgbe_rcv_msg_from_vf()
581 msgbuf[3] = hw->mac.mc_filter_type; in ixgbe_rcv_msg_from_vf()
582 ixgbe_write_mbx(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN, vf); in ixgbe_rcv_msg_from_vf()
[all …]
/linux-3.4.99/drivers/isdn/hardware/avm/
Dt1isa.c161 MsgLen = t1_get_slice(card->port, card->msgbuf); in t1isa_interrupt()
166 memset(card->msgbuf + MsgLen, 0, 30 - MsgLen); in t1isa_interrupt()
168 CAPIMSG_SETLEN(card->msgbuf, 30); in t1isa_interrupt()
174 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in t1isa_interrupt()
183 MsgLen = t1_get_slice(card->port, card->msgbuf); in t1isa_interrupt()
189 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in t1isa_interrupt()
242 MsgLen = t1_get_slice(card->port, card->msgbuf); in t1isa_interrupt()
244 card->msgbuf[MsgLen] = 0; in t1isa_interrupt()
246 && (card->msgbuf[MsgLen - 1] == '\n' in t1isa_interrupt()
247 || card->msgbuf[MsgLen - 1] == '\r')) { in t1isa_interrupt()
[all …]
Db1.c519 MsgLen = b1_get_slice(card->port, card->msgbuf); in b1_interrupt()
524 memset(card->msgbuf + MsgLen, 0, 30-MsgLen); in b1_interrupt()
526 CAPIMSG_SETLEN(card->msgbuf, 30); in b1_interrupt()
532 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in b1_interrupt()
541 MsgLen = b1_get_slice(card->port, card->msgbuf); in b1_interrupt()
547 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in b1_interrupt()
600 MsgLen = b1_get_slice(card->port, card->msgbuf); in b1_interrupt()
602 card->msgbuf[MsgLen] = 0; in b1_interrupt()
604 && (card->msgbuf[MsgLen - 1] == '\n' in b1_interrupt()
605 || card->msgbuf[MsgLen - 1] == '\r')) { in b1_interrupt()
[all …]
Db1dma.c465 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
469 memset(card->msgbuf + MsgLen, 0, 30 - MsgLen); in b1dma_handle_rx()
471 CAPIMSG_SETLEN(card->msgbuf, 30); in b1dma_handle_rx()
477 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in b1dma_handle_rx()
486 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
491 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in b1dma_handle_rx()
551 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
552 card->msgbuf[MsgLen] = 0; in b1dma_handle_rx()
554 && (card->msgbuf[MsgLen - 1] == '\n' in b1dma_handle_rx()
555 || card->msgbuf[MsgLen - 1] == '\r')) { in b1dma_handle_rx()
[all …]
Dc4.c524 MsgLen = _get_slice(&p, card->msgbuf); in c4_handle_rx()
526 cidx = CAPIMSG_CONTROLLER(card->msgbuf)-card->cardnr; in c4_handle_rx()
531 memset(card->msgbuf + MsgLen, 0, 30 - MsgLen); in c4_handle_rx()
533 CAPIMSG_SETLEN(card->msgbuf, 30); in c4_handle_rx()
539 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in c4_handle_rx()
548 MsgLen = _get_slice(&p, card->msgbuf); in c4_handle_rx()
549 cidx = CAPIMSG_CONTROLLER(card->msgbuf)-card->cardnr; in c4_handle_rx()
558 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in c4_handle_rx()
633 MsgLen = _get_slice(&p, card->msgbuf); in c4_handle_rx()
634 card->msgbuf[MsgLen] = 0; in c4_handle_rx()
[all …]
/linux-3.4.99/drivers/block/
Dsunvdc.c243 static int vdc_ack(struct vdc_port *port, void *msgbuf) in vdc_ack() argument
246 struct vio_dring_data *pkt = msgbuf; in vdc_ack()
258 static int vdc_nack(struct vdc_port *port, void *msgbuf) in vdc_nack() argument
291 } msgbuf; in vdc_event() local
293 err = ldc_read(vio->lp, &msgbuf, sizeof(msgbuf)); in vdc_event()
302 msgbuf.tag.type, in vdc_event()
303 msgbuf.tag.stype, in vdc_event()
304 msgbuf.tag.stype_env, in vdc_event()
305 msgbuf.tag.sid); in vdc_event()
306 err = vio_validate_sid(vio, &msgbuf.tag); in vdc_event()
[all …]
/linux-3.4.99/drivers/net/ethernet/sun/
Dsunvnet.c392 static int vnet_rx(struct vnet_port *port, void *msgbuf) in vnet_rx() argument
394 struct vio_dring_data *pkt = msgbuf; in vnet_rx()
431 static int vnet_ack(struct vnet_port *port, void *msgbuf) in vnet_ack() argument
434 struct vio_dring_data *pkt = msgbuf; in vnet_ack()
457 static int vnet_nack(struct vnet_port *port, void *msgbuf) in vnet_nack() argument
463 static int handle_mcast(struct vnet_port *port, void *msgbuf) in handle_mcast() argument
465 struct vio_net_mcast_info *pkt = msgbuf; in handle_mcast()
533 } msgbuf; in vnet_event() local
535 err = ldc_read(vio->lp, &msgbuf, sizeof(msgbuf)); in vnet_event()
544 msgbuf.tag.type, in vnet_event()
[all …]
/linux-3.4.99/init/
Dmain.c657 static char msgbuf[64]; variable
687 msgbuf[0] = 0; in do_one_initcall()
690 sprintf(msgbuf, "error code %d ", ret); in do_one_initcall()
693 strlcat(msgbuf, "preemption imbalance ", sizeof(msgbuf)); in do_one_initcall()
697 strlcat(msgbuf, "disabled interrupts ", sizeof(msgbuf)); in do_one_initcall()
700 if (msgbuf[0]) { in do_one_initcall()
701 printk("initcall %pF returned with %s\n", fn, msgbuf); in do_one_initcall()
/linux-3.4.99/arch/parisc/kernel/
Dsys_parisc32.c107 struct msgbuf *mb; in sys32_msgsnd()
121 KERNEL_SYSCALL(err, sys_msgsnd, msqid, (struct msgbuf __user *)mb, msgsz, msgflg); in sys32_msgsnd()
131 struct msgbuf *mb; in sys32_msgrcv()
138 KERNEL_SYSCALL(err, sys_msgrcv, msqid, (struct msgbuf __user *)mb, msgsz, msgtyp, msgflg); in sys32_msgrcv()
/linux-3.4.99/ipc/
Dsyscall.c45 return sys_msgsnd(first, (struct msgbuf __user *) ptr, in SYSCALL_DEFINE6()
63 (struct msgbuf __user *) ptr, in SYSCALL_DEFINE6()
/linux-3.4.99/drivers/staging/wlan-ng/
Dp80211netdev.c566 u8 *msgbuf; in p80211knetdev_do_ioctl() local
593 msgbuf = kmalloc(req->len, GFP_KERNEL); in p80211knetdev_do_ioctl()
594 if (msgbuf) { in p80211knetdev_do_ioctl()
595 if (copy_from_user(msgbuf, (void __user *)req->data, req->len)) in p80211knetdev_do_ioctl()
598 result = p80211req_dorequest(wlandev, msgbuf); in p80211knetdev_do_ioctl()
602 ((void __user *)req->data, msgbuf, req->len)) { in p80211knetdev_do_ioctl()
606 kfree(msgbuf); in p80211knetdev_do_ioctl()
Dp80211req.h51 int p80211req_dorequest(wlandevice_t *wlandev, u8 *msgbuf);
Dp80211req.c96 int p80211req_dorequest(wlandevice_t *wlandev, u8 *msgbuf) in p80211req_dorequest() argument
99 struct p80211msg *msg = (struct p80211msg *) msgbuf; in p80211req_dorequest()
/linux-3.4.99/include/linux/
Dipc.h58 struct msgbuf __user *msgp;
Dmsg.h35 struct msgbuf { struct
/linux-3.4.99/drivers/misc/eeprom/
Dat24.c160 u8 msgbuf[2]; in at24_eeprom_read() local
210 msgbuf[i++] = offset >> 8; in at24_eeprom_read()
211 msgbuf[i++] = offset; in at24_eeprom_read()
214 msg[0].buf = msgbuf; in at24_eeprom_read()
/linux-3.4.99/include/asm-generic/
DKbuild13 header-y += msgbuf.h
DKbuild.asm25 header-y += msgbuf.h
/linux-3.4.99/arch/powerpc/include/asm/
DKbuild14 header-y += msgbuf.h
/linux-3.4.99/arch/tile/include/asm/
DKbuild25 generic-y += msgbuf.h
/linux-3.4.99/drivers/net/ethernet/intel/igb/
Digb_main.c5109 static int igb_set_vf_promisc(struct igb_adapter *adapter, u32 *msgbuf, u32 vf) in igb_set_vf_promisc() argument
5119 if (*msgbuf & E1000_VF_SET_PROMISC_MULTICAST) { in igb_set_vf_promisc()
5122 *msgbuf &= ~E1000_VF_SET_PROMISC_MULTICAST; in igb_set_vf_promisc()
5142 if (*msgbuf & E1000_VT_MSGINFO_MASK) in igb_set_vf_promisc()
5150 u32 *msgbuf, u32 vf) in igb_set_vf_multicasts() argument
5152 int n = (msgbuf[0] & E1000_VT_MSGINFO_MASK) >> E1000_VT_MSGINFO_SHIFT; in igb_set_vf_multicasts()
5153 u16 *hash_list = (u16 *)&msgbuf[1]; in igb_set_vf_multicasts()
5371 static int igb_set_vf_vlan(struct igb_adapter *adapter, u32 *msgbuf, u32 vf) in igb_set_vf_vlan() argument
5373 int add = (msgbuf[0] & E1000_VT_MSGINFO_MASK) >> E1000_VT_MSGINFO_SHIFT; in igb_set_vf_vlan()
5374 int vid = (msgbuf[1] & E1000_VLVF_VLANID_MASK); in igb_set_vf_vlan()
[all …]
/linux-3.4.99/arch/blackfin/include/asm/
DKbuild23 generic-y += msgbuf.h
/linux-3.4.99/arch/c6x/include/asm/
DKbuild28 generic-y += msgbuf.h

12