Lines Matching refs:phdr
98 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *)surb->cb->p; in smsusb_onresponse() local
100 smsendian_handle_message_header(phdr); in smsusb_onresponse()
101 if (urb->actual_length >= phdr->msg_length) { in smsusb_onresponse()
102 surb->cb->size = phdr->msg_length; in smsusb_onresponse()
105 (phdr->msg_flags & MSG_HDR_FLAG_SPLIT_MSG)) { in smsusb_onresponse()
109 ((phdr->msg_flags >> 8) & 3); in smsusb_onresponse()
112 if (((int) phdr->msg_length + in smsusb_onresponse()
115 phdr->msg_length, in smsusb_onresponse()
123 memcpy((char *) phdr + surb->cb->offset, in smsusb_onresponse()
124 phdr, sizeof(struct sms_msg_hdr)); in smsusb_onresponse()
129 smscore_translate_msg(phdr->msg_type), in smsusb_onresponse()
130 phdr->msg_type, phdr->msg_length); in smsusb_onresponse()
132 smsendian_handle_rx_message((struct sms_msg_data *) phdr); in smsusb_onresponse()
138 phdr->msg_length, urb->actual_length); in smsusb_onresponse()
209 struct sms_msg_hdr *phdr; in smsusb_sendrequest() local
217 phdr = kmemdup(buffer, size, GFP_KERNEL); in smsusb_sendrequest()
218 if (!phdr) in smsusb_sendrequest()
222 smscore_translate_msg(phdr->msg_type), phdr->msg_type, in smsusb_sendrequest()
223 phdr->msg_length); in smsusb_sendrequest()
225 smsendian_handle_tx_message((struct sms_msg_data *) phdr); in smsusb_sendrequest()
226 smsendian_handle_message_header((struct sms_msg_hdr *)phdr); in smsusb_sendrequest()
228 phdr, size, &dummy, 1000); in smsusb_sendrequest()
230 kfree(phdr); in smsusb_sendrequest()