Home
last modified time | relevance | path

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

/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()
100 msgbuf[0] = IXGBE_VF_RESET; in ixgbevf_reset_hw_vf()
101 mbx->ops.write_posted(hw, msgbuf, 1); in ixgbevf_reset_hw_vf()
108 ret_val = mbx->ops.read_posted(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN); in ixgbevf_reset_hw_vf()
116 if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK) && in ixgbevf_reset_hw_vf()
117 msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_NACK)) in ixgbevf_reset_hw_vf()
121 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; in ixgbevf_reset_hw_vf()
231 u32 msgbuf[3]; in ixgbevf_set_uc_addr_vf() local
232 u8 *msg_addr = (u8 *)(&msgbuf[1]); in ixgbevf_set_uc_addr_vf()
[all …]
/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 …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c354 u32 *msgbuf, u32 vf) in ixgbe_set_vf_multicasts() argument
356 int entries = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) in ixgbe_set_vf_multicasts()
358 u16 *hash_list = (u16 *)&msgbuf[1]; in ixgbe_set_vf_multicasts()
445 static s32 ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf) in ixgbe_set_vf_lpe() argument
448 int max_frame = msgbuf[1]; in ixgbe_set_vf_lpe()
675 u32 reg, msgbuf[4]; in ixgbe_vf_reset_msg() local
677 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbe_vf_reset_msg()
727 msgbuf[0] = IXGBE_VF_RESET; in ixgbe_vf_reset_msg()
729 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_vf_reset_msg()
732 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_vf_reset_msg()
[all …]
/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 …]
Davmcard.h89 char msgbuf[128]; /* capimsg msg part */ member
/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 …]
/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 …]
/drivers/staging/wlan-ng/
Dp80211netdev.c565 u8 *msgbuf; in p80211knetdev_do_ioctl() local
592 msgbuf = kmalloc(req->len, GFP_KERNEL); in p80211knetdev_do_ioctl()
593 if (msgbuf) { in p80211knetdev_do_ioctl()
594 if (copy_from_user(msgbuf, (void __user *)req->data, req->len)) in p80211knetdev_do_ioctl()
597 result = p80211req_dorequest(wlandev, msgbuf); in p80211knetdev_do_ioctl()
601 ((void __user *)req->data, msgbuf, req->len)) { in p80211knetdev_do_ioctl()
605 kfree(msgbuf); in p80211knetdev_do_ioctl()
Dp80211req.c96 int p80211req_dorequest(wlandevice_t *wlandev, u8 *msgbuf) in p80211req_dorequest() argument
99 struct p80211msg *msg = (struct p80211msg *) msgbuf; in p80211req_dorequest()
Dp80211req.h51 int p80211req_dorequest(wlandevice_t *wlandev, u8 *msgbuf);
/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()
/drivers/net/ethernet/intel/igb/
Digb_main.c5269 static int igb_set_vf_promisc(struct igb_adapter *adapter, u32 *msgbuf, u32 vf) in igb_set_vf_promisc() argument
5279 if (*msgbuf & E1000_VF_SET_PROMISC_MULTICAST) { in igb_set_vf_promisc()
5282 *msgbuf &= ~E1000_VF_SET_PROMISC_MULTICAST; in igb_set_vf_promisc()
5301 if (*msgbuf & E1000_VT_MSGINFO_MASK) in igb_set_vf_promisc()
5308 u32 *msgbuf, u32 vf) in igb_set_vf_multicasts() argument
5310 int n = (msgbuf[0] & E1000_VT_MSGINFO_MASK) >> E1000_VT_MSGINFO_SHIFT; in igb_set_vf_multicasts()
5311 u16 *hash_list = (u16 *)&msgbuf[1]; in igb_set_vf_multicasts()
5547 static int igb_set_vf_vlan(struct igb_adapter *adapter, u32 *msgbuf, u32 vf) in igb_set_vf_vlan() argument
5550 int add = (msgbuf[0] & E1000_VT_MSGINFO_MASK) >> E1000_VT_MSGINFO_SHIFT; in igb_set_vf_vlan()
5551 int vid = (msgbuf[1] & E1000_VLVF_VLANID_MASK); in igb_set_vf_vlan()
[all …]
/drivers/scsi/
Dtmscsim.c1190 dc390_MsgIn_complete (u8 *msgbuf, u32 len) in dc390_MsgIn_complete() argument
1192 if (*msgbuf == EXTENDED_MESSAGE) in dc390_MsgIn_complete()
1195 if (len < msgbuf[1] + 2) return 0; in dc390_MsgIn_complete()
1197 else if (*msgbuf >= 0x20 && *msgbuf <= 0x2f) // two byte messages in dc390_MsgIn_complete()
Ddc395x.c2604 static inline u8 msgin_completed(u8 * msgbuf, u32 len) in msgin_completed() argument
2606 if (*msgbuf == EXTENDED_MESSAGE) { in msgin_completed()
2609 if (len < msgbuf[1] + 2) in msgin_completed()
2611 } else if (*msgbuf >= 0x20 && *msgbuf <= 0x2f) /* two byte messages */ in msgin_completed()