Lines Matching refs:phdr
93 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *)surb->cb->p; in smsusb_onresponse() local
95 smsendian_handle_message_header(phdr); in smsusb_onresponse()
96 if (urb->actual_length >= phdr->msg_length) { in smsusb_onresponse()
97 surb->cb->size = phdr->msg_length; in smsusb_onresponse()
100 (phdr->msg_flags & MSG_HDR_FLAG_SPLIT_MSG)) { in smsusb_onresponse()
104 ((phdr->msg_flags >> 8) & 3); in smsusb_onresponse()
107 if (((int) phdr->msg_length + in smsusb_onresponse()
110 phdr->msg_length, in smsusb_onresponse()
118 memcpy((char *) phdr + surb->cb->offset, in smsusb_onresponse()
119 phdr, sizeof(struct sms_msg_hdr)); in smsusb_onresponse()
124 smscore_translate_msg(phdr->msg_type), in smsusb_onresponse()
125 phdr->msg_type, phdr->msg_length); in smsusb_onresponse()
127 smsendian_handle_rx_message((struct sms_msg_data *) phdr); in smsusb_onresponse()
133 phdr->msg_length, urb->actual_length); in smsusb_onresponse()
203 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *) buffer; in smsusb_sendrequest() local
212 smscore_translate_msg(phdr->msg_type), phdr->msg_type, in smsusb_sendrequest()
213 phdr->msg_length); in smsusb_sendrequest()
215 smsendian_handle_tx_message((struct sms_msg_data *) phdr); in smsusb_sendrequest()