/linux-2.6.39/drivers/staging/westbridge/astoria/api/src/ |
D | cyasusb.c | 43 cy_as_device *dev_p, 52 cy_as_usb_reset_e_p0_state(cy_as_device *dev_p) in cy_as_usb_reset_e_p0_state() argument 56 cy_as_device_clear_ack_delayed(dev_p); in cy_as_usb_reset_e_p0_state() 57 cy_as_device_clear_setup_packet(dev_p); in cy_as_usb_reset_e_p0_state() 58 if (cy_as_device_is_usb_async_pending(dev_p, 0)) in cy_as_usb_reset_e_p0_state() 59 cy_as_usb_cancel_async((cy_as_device_handle)dev_p, 0); in cy_as_usb_reset_e_p0_state() 61 dev_p->usb_pending_buffer = 0; in cy_as_usb_reset_e_p0_state() 68 is_usb_active(cy_as_device *dev_p) in is_usb_active() argument 70 if (!cy_as_device_is_configured(dev_p)) in is_usb_active() 73 if (!cy_as_device_is_firmware_loaded(dev_p)) in is_usb_active() [all …]
|
D | cyasmtp.c | 29 cy_as_mtp_func_callback(cy_as_device *dev_p, 36 is_mtp_active(cy_as_device *dev_p) in is_mtp_active() argument 38 if (!cy_as_device_is_configured(dev_p)) in is_mtp_active() 41 if (!cy_as_device_is_firmware_loaded(dev_p)) in is_mtp_active() 44 if (dev_p->mtp_count == 0) in is_mtp_active() 47 if (cy_as_device_is_in_suspend_mode(dev_p)) in is_mtp_active() 54 my_mtp_request_callback(cy_as_device *dev_p, in my_mtp_request_callback() argument 104 dev_p->mtp_turbo_active = cy_false; in my_mtp_request_callback() 106 if (dev_p->mtp_event_cb) in my_mtp_request_callback() 107 dev_p->mtp_event_cb( in my_mtp_request_callback() [all …]
|
D | cyasmisc.c | 65 #define cy_as_check_device_ready(dev_p) \ argument 67 if (!(dev_p) || ((dev_p)->sig != \ 71 if (!cy_as_device_is_configured(dev_p)) \ 74 if (!cy_as_device_is_firmware_loaded(dev_p))\ 82 cy_as_device *dev_p; in cy_as_device_find_from_tag() local 84 for (dev_p = g_device_list; dev_p != 0; dev_p = dev_p->next_p) { in cy_as_device_find_from_tag() 85 if (dev_p->tag == tag) in cy_as_device_find_from_tag() 86 return dev_p; in cy_as_device_find_from_tag() 104 my_handle_response_no_data(cy_as_device *dev_p, in my_handle_response_no_data() argument 116 cy_as_ll_destroy_request(dev_p, req_p); in my_handle_response_no_data() [all …]
|
D | cyasdma.c | 32 cy_as_dma_add_request_to_free_queue(cy_as_device *dev_p, in cy_as_dma_add_request_to_free_queue() argument 38 req_p->next_p = dev_p->dma_freelist_p; in cy_as_dma_add_request_to_free_queue() 39 dev_p->dma_freelist_p = req_p; in cy_as_dma_add_request_to_free_queue() 48 cy_as_dma_get_dma_queue_entry(cy_as_device *dev_p) in cy_as_dma_get_dma_queue_entry() argument 53 cy_as_hal_assert(dev_p->dma_freelist_p != 0); in cy_as_dma_get_dma_queue_entry() 56 req_p = dev_p->dma_freelist_p; in cy_as_dma_get_dma_queue_entry() 57 dev_p->dma_freelist_p = req_p->next_p; in cy_as_dma_get_dma_queue_entry() 71 cy_as_dma_set_max_dma_size(cy_as_device *dev_p, in cy_as_dma_set_max_dma_size() argument 75 if ((!dev_p->is_mtp_firmware) || (ep != 0x02)) { in cy_as_dma_set_max_dma_size() 80 CY_AS_NUM_EP(dev_p, ep)->maxhwdata = (uint16_t)size; in cy_as_dma_set_max_dma_size() [all …]
|
D | cyasstorage.c | 43 cy_an_map_bus_from_media_type(cy_as_device *dev_p, in cy_an_map_bus_from_media_type() argument 48 if (!dev_p || (dev_p->sig != CY_AS_DEVICE_HANDLE_SIGNATURE)) in cy_an_map_bus_from_media_type() 51 if (!cy_as_device_is_configured(dev_p)) in cy_an_map_bus_from_media_type() 54 if (!cy_as_device_is_firmware_loaded(dev_p)) in cy_an_map_bus_from_media_type() 58 if (dev_p->media_supported[0] & code) { in cy_an_map_bus_from_media_type() 59 if (dev_p->media_supported[1] & code) { in cy_an_map_bus_from_media_type() 68 if (dev_p->media_supported[1] & code) in cy_an_map_bus_from_media_type() 161 my_storage_request_callback(cy_as_device *dev_p, in my_storage_request_callback() argument 171 cy_as_device_handle h = (cy_as_device_handle)dev_p; in my_storage_request_callback() 180 cy_as_ll_send_status_response(dev_p, in my_storage_request_callback() [all …]
|
D | cyaslep2pep.c | 122 find_endpoint_directions(cy_as_device *dev_p, in find_endpoint_directions() argument 134 if (dev_p->usb_config[epno].enabled) { in find_endpoint_directions() 135 int pep = dev_p->usb_config[epno].physical; in find_endpoint_directions() 136 if (dev_p->usb_config[epno].type == cy_as_usb_iso) { in find_endpoint_directions() 142 if (dev_p->usb_config[epno].dir == cy_as_usb_in) in find_endpoint_directions() 147 if (dev_p->usb_config[epno].dir == cy_as_usb_in) in find_endpoint_directions() 170 dev_p->usb_ep1cfg[0] = 0; in find_endpoint_directions() 171 dev_p->usb_ep1cfg[1] = 0; in find_endpoint_directions() 172 if (dev_p->usb_config[1].enabled) { in find_endpoint_directions() 173 if ((dev_p->usb_config[1].dir == cy_as_usb_out) || in find_endpoint_directions() [all …]
|
D | cyasintr.c | 30 cy_as_mcu_interrupt_handler(cy_as_device *dev_p) in cy_as_mcu_interrupt_handler() argument 35 v = cy_as_hal_read_register(dev_p->tag, CY_AS_MEM_P0_MCU_STAT); in cy_as_mcu_interrupt_handler() 40 cy_as_power_management_interrupt_handler(cy_as_device *dev_p) in cy_as_power_management_interrupt_handler() argument 44 v = cy_as_hal_read_register(dev_p->tag, CY_AS_MEM_PWR_MAGT_STAT); in cy_as_power_management_interrupt_handler() 49 cy_as_pll_lock_loss_interrupt_handler(cy_as_device *dev_p) in cy_as_pll_lock_loss_interrupt_handler() argument 53 v = cy_as_hal_read_register(dev_p->tag, CY_AS_MEM_PLL_LOCK_LOSS_STAT); in cy_as_pll_lock_loss_interrupt_handler() 57 uint32_t cy_as_intr_start(cy_as_device *dev_p, cy_bool dmaintr) in cy_as_intr_start() argument 61 cy_as_hal_assert(dev_p->sig == CY_AS_DEVICE_HANDLE_SIGNATURE); in cy_as_intr_start() 63 if (cy_as_device_is_intr_running(dev_p) != 0) in cy_as_intr_start() 74 cy_as_hal_write_register(dev_p->tag, CY_AS_MEM_P0_INT_MASK_REG, v); in cy_as_intr_start() [all …]
|
D | cyaslowlevel.c | 33 static cy_as_return_status_t cy_as_send_one(cy_as_device *dev_p, 57 cy_as_ll_remove_request_queue_head(cy_as_device *dev_p, cy_as_context *ctxt_p) in cy_as_ll_remove_request_queue_head() argument 62 (void)dev_p; in cy_as_ll_remove_request_queue_head() 94 cy_as_ll_send_next_request(cy_as_device *dev_p, cy_as_context *ctxt_p) in cy_as_ll_send_next_request() argument 113 ret = cy_as_send_one(dev_p, node_p->rqt); in cy_as_ll_send_next_request() 123 node_p->callback(dev_p, ctxt_p->number, in cy_as_ll_send_next_request() 125 cy_as_ll_remove_request_queue_head(dev_p, ctxt_p); in cy_as_ll_send_next_request() 139 cy_as_ll_remove_request(cy_as_device *dev_p, cy_as_context *ctxt_p, in cy_as_ll_remove_request() argument 174 node_p->callback(dev_p, ctxt_p->number, node_p->rqt, in cy_as_ll_remove_request() 186 cy_as_ll_remove_all_requests(cy_as_device *dev_p, cy_as_context *ctxt_p) in cy_as_ll_remove_all_requests() argument [all …]
|
/linux-2.6.39/drivers/staging/westbridge/astoria/include/linux/westbridge/ |
D | cyaslowlevel.h | 180 cy_as_device *dev_p 185 cy_as_device *dev_p 191 cy_as_device *dev_p, 212 cy_as_device *dev_p, 217 cy_as_device *dev_p, 224 cy_as_device *dev_p, 230 cy_as_ll_remove_all_requests(cy_as_device *dev_p, 235 cy_as_device *dev_p, 241 cy_as_device *dev_p, 255 cy_as_device *dev_p, [all …]
|
D | cyasdma.h | 122 cy_as_device *dev_p 144 cy_as_device *dev_p 171 cy_as_device *dev_p, 197 cy_as_device *dev_p, 232 cy_as_device *dev_p, 277 cy_as_device *dev_p, 304 cy_as_device *dev_p, 326 cy_as_device *dev_p, 345 cy_as_device *dev_p,
|
D | cyaslep2pep.h | 28 cy_as_usb_map_logical2_physical(cy_as_device *dev_p); 31 cy_as_usb_setup_dma(cy_as_device *dev_p); 34 cy_as_usb_set_dma_sizes(cy_as_device *dev_p);
|
D | cyasintr.h | 58 cy_as_device *dev_p, 83 cy_as_device *dev_p
|
D | cyasdevice.h | 144 #define CY_AS_NUM_EP(dev_p, num) ((dev_p)->endp[(num)]) argument 167 cy_as_device *dev_p, 293 cy_as_device *dev_p, 463 cy_as_misc_send_request(cy_as_device *dev_p, 475 cy_as_misc_cancel_ex_requests(cy_as_device *dev_p); 483 cy_as_device *dev_p); 491 cy_as_device *dev_p);
|
/linux-2.6.39/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/ |
D | cyashalomap_kernel.c | 192 static void cy_handle_d_r_q_interrupt(cy_as_omap_dev_kernel *dev_p); 495 cy_as_omap_dev_kernel *dev_p; in cy_astoria_int_handler() local 525 dev_p = dev_id; in cy_astoria_int_handler() 530 read_val = cy_as_hal_read_register((cy_as_hal_device_tag)dev_p, in cy_astoria_int_handler() 536 mask_val = cy_as_hal_read_register((cy_as_hal_device_tag)dev_p, in cy_astoria_int_handler() 545 cy_as_hal_write_register((cy_as_hal_device_tag)dev_p, in cy_astoria_int_handler() 559 cy_handle_d_r_q_interrupt(dev_p); in cy_astoria_int_handler() 571 } while (cy_as_hal_read_register((cy_as_hal_device_tag)dev_p, in cy_astoria_int_handler() 577 cy_as_intr_service_interrupt((cy_as_hal_device_tag)dev_p); in cy_astoria_int_handler() 589 cy_as_hal_write_register((cy_as_hal_device_tag)dev_p, in cy_astoria_int_handler() [all …]
|
/linux-2.6.39/drivers/staging/rt2860/iface/ |
D | rtmp_pci.h | 31 #define RT28XX_HANDLE_DEV_ASSIGN(handle, dev_p) \ argument 32 ((struct os_cookie *)handle)->pci_dev = dev_p; 38 #define RT28XX_PUT_DEVICE(dev_p) argument 63 release_mem_region(pci_resource_start(dev_p, 0), \ 64 pci_resource_len(dev_p, 0)); } \ 66 pci_release_regions(dev_p); }
|
/linux-2.6.39/drivers/target/ |
D | target_core_file.c | 128 char *dev_p = NULL; in fd_create_virtdevice() local 143 dev_p = getname(fd_dev->fd_dev_name); in fd_create_virtdevice() 146 if (IS_ERR(dev_p)) { in fd_create_virtdevice() 148 fd_dev->fd_dev_name, IS_ERR(dev_p)); in fd_create_virtdevice() 149 ret = PTR_ERR(dev_p); in fd_create_virtdevice() 168 file = filp_open(dev_p, flags, 0600); in fd_create_virtdevice() 170 printk(KERN_ERR "filp_open(%s) failed\n", dev_p); in fd_create_virtdevice() 175 printk(KERN_ERR "filp_open(%s) failed\n", dev_p); in fd_create_virtdevice() 241 putname(dev_p); in fd_create_virtdevice() 248 putname(dev_p); in fd_create_virtdevice()
|
/linux-2.6.39/drivers/video/omap2/dss/ |
D | core.c | 451 u8 *dev_p = (u8 *)dev; in reset_device() local 452 u8 *dev_end = dev_p + sizeof(*dev); in reset_device() 463 while (dev_p < dev_end) { in reset_device() 464 if (*dev_p) { in reset_device() 470 dev_p++; in reset_device()
|
/linux-2.6.39/drivers/staging/rt2860/ |
D | usb_main_dev.c | 231 struct usb_device *dev_p = interface_to_usbdev(intf); in RT28XXChipsetCheck() local 235 if (dev_p->descriptor.idVendor == rtusb_usb_id[i].idVendor && in RT28XXChipsetCheck() 236 dev_p->descriptor.idProduct == rtusb_usb_id[i].idProduct) { in RT28XXChipsetCheck() 238 dev_p->descriptor.idVendor, in RT28XXChipsetCheck() 239 dev_p->descriptor.idProduct); in RT28XXChipsetCheck()
|
/linux-2.6.39/drivers/staging/westbridge/astoria/gadget/ |
D | cyasgadget.c | 1642 cy_as_device *dev_p = (cy_as_device *)cy_as_dev->dev_handle; in cyas_usb_reset() local 1645 __func__, dev_p->is_mtp_firmware); in cyas_usb_reset() 1716 cy_as_device *dev_p = (cy_as_device *)cy_as_dev->dev_handle; in cyas_usb_reinit() local 1722 "0x%x\n", __func__, dev_p->is_mtp_firmware); in cyas_usb_reinit() 1736 (!dev_p->is_mtp_firmware)) { in cyas_usb_reinit() 1798 if (dev_p->mtp_count != 0) { in cyas_usb_reinit()
|
/linux-2.6.39/drivers/staging/rt2860/common/ |
D | rtmp_init.c | 3528 struct net_device *dev_p = NULL; in get_netdev_from_bssid() local 3531 dev_p = pAd->net_dev; in get_netdev_from_bssid() 3534 ASSERT(dev_p); in get_netdev_from_bssid() 3535 return dev_p; /* return one of MBSS */ in get_netdev_from_bssid()
|