Lines Matching refs:ep_data

99 	struct usb_device_ep_data ep_data[NUM_OF_EP_MAX];  member
209 mps = dev_data.ep_data[ep_idx].mps_x2 in usb_dc_sam_usbc_ep_alloc_buf()
210 ? dev_data.ep_data[ep_idx].mps * 2 in usb_dc_sam_usbc_ep_alloc_buf()
211 : dev_data.ep_data[ep_idx].mps; in usb_dc_sam_usbc_ep_alloc_buf()
215 if (!dev_data.ep_data[i].is_configured || i == ep_idx) { in usb_dc_sam_usbc_ep_alloc_buf()
219 desc_mem_alloc += dev_data.ep_data[i].mps_x2 in usb_dc_sam_usbc_ep_alloc_buf()
220 ? dev_data.ep_data[i].mps * 2 in usb_dc_sam_usbc_ep_alloc_buf()
221 : dev_data.ep_data[i].mps; in usb_dc_sam_usbc_ep_alloc_buf()
225 memset(&dev_data.ep_data[ep_idx], 0, in usb_dc_sam_usbc_ep_alloc_buf()
239 if (!dev_data.ep_data[i].is_configured) { in usb_dc_sam_usbc_ep_alloc_buf()
243 desc_mem_alloc += dev_data.ep_data[i].mps_x2 in usb_dc_sam_usbc_ep_alloc_buf()
244 ? dev_data.ep_data[i].mps * 2 in usb_dc_sam_usbc_ep_alloc_buf()
245 : dev_data.ep_data[i].mps; in usb_dc_sam_usbc_ep_alloc_buf()
251 if (!dev_data.ep_data[i].is_configured && (i != ep_idx)) { in usb_dc_sam_usbc_ep_alloc_buf()
273 + (dev_data.ep_data[i].mps_x2 in usb_dc_sam_usbc_ep_alloc_buf()
274 ? dev_data.ep_data[i].mps in usb_dc_sam_usbc_ep_alloc_buf()
281 desc_mem_alloc += dev_data.ep_data[i].mps_x2 in usb_dc_sam_usbc_ep_alloc_buf()
282 ? dev_data.ep_data[i].mps * 2 in usb_dc_sam_usbc_ep_alloc_buf()
283 : dev_data.ep_data[i].mps; in usb_dc_sam_usbc_ep_alloc_buf()
409 dev_data.ep_data[0].cb_out(USB_EP_DIR_OUT, USB_DC_EP_SETUP); in usb_dc_ep0_isr()
438 dev_data.ep_data[0].cb_out(USB_EP_DIR_OUT, USB_DC_EP_DATA_OUT); in usb_dc_ep0_isr()
465 dev_data.ep_data[0].cb_in(USB_EP_DIR_IN, USB_DC_EP_DATA_IN); in usb_dc_ep0_isr()
529 dev_data.ep_data[ep_idx].cb_out(ep, USB_DC_EP_DATA_OUT); in usb_dc_ep_isr()
537 dev_data.ep_data[ep_idx].cb_in(ep, USB_DC_EP_DATA_IN); in usb_dc_ep_isr()
926 dev_data.ep_data[ep_idx].mps = cfg->ep_mps; in usb_dc_ep_configure()
931 dev_data.ep_data[ep_idx].mps_x2 = true; in usb_dc_ep_configure()
934 dev_data.ep_data[ep_idx].mps_x2 = false; in usb_dc_ep_configure()
940 dev_data.ep_data[ep_idx].is_configured = false; in usb_dc_ep_configure()
947 dev_data.ep_data[ep_idx].is_configured = true; in usb_dc_ep_configure()
993 dev_data.ep_data[ep_idx].out_at = 0U; in usb_dc_ep_clear_stall()
1042 if (!dev_data.ep_data[ep_idx].is_configured) { in usb_dc_ep_enable()
1048 dev_data.ep_data[ep_idx].out_at = 0U; in usb_dc_ep_enable()
1110 dev_data.ep_data[ep_idx].out_at = 0U; in usb_dc_ep_flush()
1131 dev_data.ep_data[ep_idx].cb_in = cb; in usb_dc_ep_set_callback()
1133 dev_data.ep_data[ep_idx].cb_out = cb; in usb_dc_ep_set_callback()
1259 packet_len = MIN(data_len, dev_data.ep_data[ep_idx].mps); in usb_dc_ep_write()
1373 dev_data.ep_data[ep_idx].out_at = 0U; in usb_dc_ep_read_ex()
1381 remaining = data_len - dev_data.ep_data[ep_idx].out_at; in usb_dc_ep_read_ex()
1386 dev_data.ep_data[ep_idx].out_at, in usb_dc_ep_read_ex()
1397 dev_data.ep_data[ep_idx].out_at = 0U; in usb_dc_ep_read_ex()
1408 dev_data.ep_data[ep_idx].out_at += take; in usb_dc_ep_read_ex()
1460 return dev_data.ep_data[ep_idx].mps; in usb_dc_ep_mps()