Lines Matching refs:ielength
124 size_t bytes_left, ielength; in hwarc_filter_evt_beacon_WUSB_0100() local
136 ielength = le16_to_cpu(be->wBeaconInfoLength); in hwarc_filter_evt_beacon_WUSB_0100()
137 if (bytes_left < ielength) { in hwarc_filter_evt_beacon_WUSB_0100()
140 bytes_left, ielength); in hwarc_filter_evt_beacon_WUSB_0100()
143 newbe = kzalloc(sizeof(*newbe) + ielength, GFP_ATOMIC); in hwarc_filter_evt_beacon_WUSB_0100()
153 memcpy(newbe->BeaconInfo, be->BeaconInfo, ielength); in hwarc_filter_evt_beacon_WUSB_0100()
155 *new_size = sizeof(*newbe) + ielength; in hwarc_filter_evt_beacon_WUSB_0100()
183 size_t bytes_left, ielength; in hwarc_filter_evt_drp_avail_WUSB_0100() local
196 ielength = le16_to_cpu(da->wIELength); in hwarc_filter_evt_drp_avail_WUSB_0100()
197 if (bytes_left < ielength) { in hwarc_filter_evt_drp_avail_WUSB_0100()
200 "[%zu bytes].\n", ielength, bytes_left); in hwarc_filter_evt_drp_avail_WUSB_0100()
203 if (ielength < sizeof(*ie_hdr)) { in hwarc_filter_evt_drp_avail_WUSB_0100()
206 ielength, sizeof(*ie_hdr)); in hwarc_filter_evt_drp_avail_WUSB_0100()
257 size_t bytes_left, ielength; in hwarc_filter_evt_drp_WUSB_0100() local
268 ielength = le16_to_cpu(drpev->wIELength); in hwarc_filter_evt_drp_WUSB_0100()
270 if (bytes_left < ielength) { in hwarc_filter_evt_drp_WUSB_0100()
273 "bytes].\n", ielength, bytes_left); in hwarc_filter_evt_drp_WUSB_0100()
276 newdrpev = kzalloc(sizeof(*newdrpev) + ielength, GFP_ATOMIC); in hwarc_filter_evt_drp_WUSB_0100()
284 memcpy(newdrpev->ie_data, drpev->IEData, ielength); in hwarc_filter_evt_drp_WUSB_0100()
286 *new_size = sizeof(*newdrpev) + ielength; in hwarc_filter_evt_drp_WUSB_0100()
353 size_t ielength; in hwarc_filter_cmd_set_drp_ie_WUSB_0100() local
356 ielength = le16_to_cpu(orgcmd->wIELength); in hwarc_filter_cmd_set_drp_ie_WUSB_0100()
357 cmd = kzalloc(sizeof(*cmd) + ielength, GFP_KERNEL); in hwarc_filter_cmd_set_drp_ie_WUSB_0100()
363 memcpy(cmd->IEData, orgcmd->IEData, ielength); in hwarc_filter_cmd_set_drp_ie_WUSB_0100()
365 *size = sizeof(*cmd) + ielength; in hwarc_filter_cmd_set_drp_ie_WUSB_0100()