/linux-2.6.39/net/irda/ |
D | irlap_event.c | 50 static int irlap_state_ndm (struct irlap_cb *self, IRLAP_EVENT event, 52 static int irlap_state_query (struct irlap_cb *self, IRLAP_EVENT event, 54 static int irlap_state_reply (struct irlap_cb *self, IRLAP_EVENT event, 56 static int irlap_state_conn (struct irlap_cb *self, IRLAP_EVENT event, 58 static int irlap_state_setup (struct irlap_cb *self, IRLAP_EVENT event, 60 static int irlap_state_offline(struct irlap_cb *self, IRLAP_EVENT event, 62 static int irlap_state_xmit_p (struct irlap_cb *self, IRLAP_EVENT event, 64 static int irlap_state_pclose (struct irlap_cb *self, IRLAP_EVENT event, 66 static int irlap_state_nrm_p (struct irlap_cb *self, IRLAP_EVENT event, 68 static int irlap_state_reset_wait(struct irlap_cb *self, IRLAP_EVENT event, [all …]
|
D | irlap.c | 60 extern void irlap_queue_xmit(struct irlap_cb *self, struct sk_buff *skb); 61 static void __irlap_close(struct irlap_cb *self); 62 static void irlap_init_qos_capabilities(struct irlap_cb *self, 114 struct irlap_cb *self; in irlap_open() local 119 self = kzalloc(sizeof(struct irlap_cb), GFP_KERNEL); in irlap_open() 120 if (self == NULL) in irlap_open() 123 self->magic = LAP_MAGIC; in irlap_open() 126 self->netdev = dev; in irlap_open() 127 self->qos_dev = qos; in irlap_open() 130 strlcpy(self->hw_name, hw_name, sizeof(self->hw_name)); in irlap_open() [all …]
|
D | irttp.c | 44 static void __irttp_close_tsap(struct tsap_cb *self); 58 static void irttp_run_tx_queue(struct tsap_cb *self); 59 static void irttp_run_rx_queue(struct tsap_cb *self); 61 static void irttp_flush_queues(struct tsap_cb *self); 62 static void irttp_fragment_skb(struct tsap_cb *self, struct sk_buff *skb); 63 static struct sk_buff *irttp_reassemble_skb(struct tsap_cb *self); 140 static inline void irttp_start_todo_timer(struct tsap_cb *self, int timeout) in irttp_start_todo_timer() argument 143 mod_timer(&self->todo_timer, jiffies + timeout); in irttp_start_todo_timer() 162 struct tsap_cb *self = (struct tsap_cb *) data; in irttp_todo_expired() local 165 if (!self || self->magic != TTP_TSAP_MAGIC) in irttp_todo_expired() [all …]
|
D | irlmp_event.c | 119 static inline void irlmp_next_lap_state(struct lap_cb *self, in irlmp_next_lap_state() argument 125 self->lap_state = state; in irlmp_next_lap_state() 128 static inline void irlmp_next_lsap_state(struct lsap_cb *self, in irlmp_next_lsap_state() argument 135 self->lsap_state = state; in irlmp_next_lsap_state() 139 int irlmp_do_lsap_event(struct lsap_cb *self, IRLMP_EVENT event, in irlmp_do_lsap_event() argument 142 IRDA_ASSERT(self != NULL, return -1;); in irlmp_do_lsap_event() 143 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return -1;); in irlmp_do_lsap_event() 146 __func__, irlmp_event[event], irlsap_state[ self->lsap_state]); in irlmp_do_lsap_event() 148 return (*lsap_state[self->lsap_state]) (self, event, skb); in irlmp_do_lsap_event() 157 void irlmp_do_lap_event(struct lap_cb *self, IRLMP_EVENT event, in irlmp_do_lap_event() argument [all …]
|
D | iriap_event.c | 34 static void state_s_disconnect (struct iriap_cb *self, IRIAP_EVENT event, 36 static void state_s_connecting (struct iriap_cb *self, IRIAP_EVENT event, 38 static void state_s_call (struct iriap_cb *self, IRIAP_EVENT event, 41 static void state_s_make_call (struct iriap_cb *self, IRIAP_EVENT event, 43 static void state_s_calling (struct iriap_cb *self, IRIAP_EVENT event, 45 static void state_s_outstanding (struct iriap_cb *self, IRIAP_EVENT event, 47 static void state_s_replying (struct iriap_cb *self, IRIAP_EVENT event, 49 static void state_s_wait_for_call(struct iriap_cb *self, IRIAP_EVENT event, 51 static void state_s_wait_active (struct iriap_cb *self, IRIAP_EVENT event, 54 static void state_r_disconnect (struct iriap_cb *self, IRIAP_EVENT event, [all …]
|
D | timer.c | 45 void irlap_start_slot_timer(struct irlap_cb *self, int timeout) in irlap_start_slot_timer() argument 47 irda_start_timer(&self->slot_timer, timeout, (void *) self, in irlap_start_slot_timer() 51 void irlap_start_query_timer(struct irlap_cb *self, int S, int s) in irlap_start_query_timer() argument 70 irda_start_timer( &self->query_timer, timeout, (void *) self, in irlap_start_query_timer() 74 void irlap_start_final_timer(struct irlap_cb *self, int timeout) in irlap_start_final_timer() argument 76 irda_start_timer(&self->final_timer, timeout, (void *) self, in irlap_start_final_timer() 80 void irlap_start_wd_timer(struct irlap_cb *self, int timeout) in irlap_start_wd_timer() argument 82 irda_start_timer(&self->wd_timer, timeout, (void *) self, in irlap_start_wd_timer() 86 void irlap_start_backoff_timer(struct irlap_cb *self, int timeout) in irlap_start_backoff_timer() argument 88 irda_start_timer(&self->backoff_timer, timeout, (void *) self, in irlap_start_backoff_timer() [all …]
|
D | irlap_frame.c | 47 static void irlap_send_i_frame(struct irlap_cb *self, struct sk_buff *skb, 57 static inline void irlap_insert_info(struct irlap_cb *self, in irlap_insert_info() argument 67 cb->mtt = self->mtt_required; in irlap_insert_info() 68 cb->next_speed = self->speed; in irlap_insert_info() 71 self->mtt_required = 0; in irlap_insert_info() 77 cb->xbofs = self->bofs_count; in irlap_insert_info() 78 cb->next_xbofs = self->next_bofs; in irlap_insert_info() 79 cb->xbofs_delay = self->xbofs_delay; in irlap_insert_info() 82 self->xbofs_delay = 0; in irlap_insert_info() 84 self->bofs_count = self->next_bofs; in irlap_insert_info() [all …]
|
/linux-2.6.39/net/irda/ircomm/ |
D | ircomm_tty_attach.c | 49 static void ircomm_tty_ias_register(struct ircomm_tty_cb *self); 55 static void ircomm_tty_start_watchdog_timer(struct ircomm_tty_cb *self, 59 static int ircomm_tty_state_idle(struct ircomm_tty_cb *self, 63 static int ircomm_tty_state_search(struct ircomm_tty_cb *self, 67 static int ircomm_tty_state_query_parameters(struct ircomm_tty_cb *self, 71 static int ircomm_tty_state_query_lsap_sel(struct ircomm_tty_cb *self, 75 static int ircomm_tty_state_setup(struct ircomm_tty_cb *self, 79 static int ircomm_tty_state_ready(struct ircomm_tty_cb *self, 113 static int (*state[])(struct ircomm_tty_cb *self, IRCOMM_TTY_EVENT event, 131 int ircomm_tty_attach_cable(struct ircomm_tty_cb *self) in ircomm_tty_attach_cable() argument [all …]
|
D | ircomm_tty.c | 67 static void ircomm_tty_shutdown(struct ircomm_tty_cb *self); 144 static void __exit __ircomm_tty_cleanup(struct ircomm_tty_cb *self) in __ircomm_tty_cleanup() argument 148 IRDA_ASSERT(self != NULL, return;); in __ircomm_tty_cleanup() 149 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); in __ircomm_tty_cleanup() 151 ircomm_tty_shutdown(self); in __ircomm_tty_cleanup() 153 self->magic = 0; in __ircomm_tty_cleanup() 154 kfree(self); in __ircomm_tty_cleanup() 186 static int ircomm_tty_startup(struct ircomm_tty_cb *self) in ircomm_tty_startup() argument 193 IRDA_ASSERT(self != NULL, return -1;); in ircomm_tty_startup() 194 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); in ircomm_tty_startup() [all …]
|
D | ircomm_core.c | 51 static int __ircomm_close(struct ircomm_cb *self); 52 static void ircomm_control_indication(struct ircomm_cb *self, 112 struct ircomm_cb *self = NULL; in ircomm_open() local 120 self = kzalloc(sizeof(struct ircomm_cb), GFP_ATOMIC); in ircomm_open() 121 if (self == NULL) in ircomm_open() 124 self->notify = *notify; in ircomm_open() 125 self->magic = IRCOMM_MAGIC; in ircomm_open() 129 self->flow_status = FLOW_START; in ircomm_open() 130 ret = ircomm_open_lsap(self); in ircomm_open() 132 ret = ircomm_open_tsap(self); in ircomm_open() [all …]
|
/linux-2.6.39/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | SchedGui.py | 23 def __init__(self, sched_tracer, title, parent = None, id = -1): argument 24 wx.Frame.__init__(self, parent, id, title) 26 (self.screen_width, self.screen_height) = wx.GetDisplaySize() 27 self.screen_width -= 10 28 self.screen_height -= 10 29 self.zoom = 0.5 30 self.scroll_scale = 20 31 self.sched_tracer = sched_tracer 32 self.sched_tracer.set_root_win(self) 33 (self.ts_start, self.ts_end) = sched_tracer.interval() [all …]
|
/linux-2.6.39/tools/perf/util/ui/ |
D | browser.c | 25 void ui_browser__set_color(struct ui_browser *self __used, int color) in ui_browser__set_color() 30 void ui_browser__set_percent_color(struct ui_browser *self, in ui_browser__set_percent_color() argument 34 ui_browser__set_color(self, color); in ui_browser__set_percent_color() 37 void ui_browser__gotorc(struct ui_browser *self, int y, int x) in ui_browser__gotorc() argument 39 SLsmg_gotorc(self->y + y, self->x + x); in ui_browser__gotorc() 42 void ui_browser__list_head_seek(struct ui_browser *self, off_t offset, int whence) in ui_browser__list_head_seek() argument 44 struct list_head *head = self->entries; in ui_browser__list_head_seek() 52 pos = self->top; in ui_browser__list_head_seek() 69 self->top = pos; in ui_browser__list_head_seek() 72 void ui_browser__rb_tree_seek(struct ui_browser *self, off_t offset, int whence) in ui_browser__rb_tree_seek() argument [all …]
|
/linux-2.6.39/drivers/net/irda/ |
D | donauboe.c | 244 toshoboe_dumpregs (struct toshoboe_cb *self) in toshoboe_dumpregs() argument 256 self->int_tx, self->int_rx, self->int_txunder, self->int_rxover, in toshoboe_dumpregs() 257 self->int_sip); in toshoboe_dumpregs() 274 if (self->ring) in toshoboe_dumpregs() 277 ringbase = virt_to_bus (self->ring); in toshoboe_dumpregs() 281 printk (" (%d,%02x)",self->ring->rx[i].len,self->ring->rx[i].control); in toshoboe_dumpregs() 285 printk (" (%d,%02x)",self->ring->tx[i].len,self->ring->tx[i].control); in toshoboe_dumpregs() 293 toshoboe_disablebm (struct toshoboe_cb *self) in toshoboe_disablebm() argument 298 pci_read_config_byte (self->pdev, PCI_COMMAND, &command); in toshoboe_disablebm() 300 pci_write_config_byte (self->pdev, PCI_COMMAND, command); in toshoboe_disablebm() [all …]
|
D | irda-usb.c | 110 static void irda_usb_init_qos(struct irda_usb_cb *self) ; 113 static void irda_usb_change_speed_xbofs(struct irda_usb_cb *self); 116 static int irda_usb_open(struct irda_usb_cb *self); 117 static void irda_usb_close(struct irda_usb_cb *self); 149 static void irda_usb_build_header(struct irda_usb_cb *self, in irda_usb_build_header() argument 157 if (self->capability & IUC_STIR421X && in irda_usb_build_header() 158 ((self->new_speed != -1) || (self->new_xbofs != -1))) { in irda_usb_build_header() 163 if (self->new_speed == -1) in irda_usb_build_header() 164 self->new_speed = self->speed ; in irda_usb_build_header() 166 if (self->new_xbofs == -1) in irda_usb_build_header() [all …]
|
D | sh_irda.c | 136 int (*xir_fre) (struct sh_irda_self *self); 137 int (*xir_trov) (struct sh_irda_self *self); 138 int (*xir_9) (struct sh_irda_self *self); 139 int (*xir_8) (struct sh_irda_self *self); 140 int (*xir_fte) (struct sh_irda_self *self); 169 static void sh_irda_write(struct sh_irda_self *self, u32 offset, u16 data) in sh_irda_write() argument 173 spin_lock_irqsave(&self->lock, flags); in sh_irda_write() 174 iowrite16(data, self->membase + offset); in sh_irda_write() 175 spin_unlock_irqrestore(&self->lock, flags); in sh_irda_write() 178 static u16 sh_irda_read(struct sh_irda_self *self, u32 offset) in sh_irda_read() argument [all …]
|
D | ali-ircc.c | 104 static int ali_ircc_close(struct ali_ircc_cb *self); 107 static int ali_ircc_is_receiving(struct ali_ircc_cb *self); 111 static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud); 116 static irqreturn_t ali_ircc_sir_interrupt(struct ali_ircc_cb *self); 117 static void ali_ircc_sir_receive(struct ali_ircc_cb *self); 118 static void ali_ircc_sir_write_wakeup(struct ali_ircc_cb *self); 126 static irqreturn_t ali_ircc_fir_interrupt(struct ali_ircc_cb *self); 127 static int ali_ircc_dma_receive(struct ali_ircc_cb *self); 128 static int ali_ircc_dma_receive_complete(struct ali_ircc_cb *self); 129 static int ali_ircc_dma_xmit_complete(struct ali_ircc_cb *self); [all …]
|
D | via-ircc.c | 81 static int via_ircc_dma_receive(struct via_ircc_cb *self); 82 static int via_ircc_dma_receive_complete(struct via_ircc_cb *self, 88 static void via_hw_init(struct via_ircc_cb *self); 89 static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 baud); 91 static int via_ircc_is_receiving(struct via_ircc_cb *self); 100 static int RxTimerHandler(struct via_ircc_cb *self, int iobase); 101 static void hwreset(struct via_ircc_cb *self); 102 static int via_ircc_dma_xmit(struct via_ircc_cb *self, u16 iobase); 103 static int upload_rxdata(struct via_ircc_cb *self, int iobase); 292 struct via_ircc_cb *self; in via_ircc_open() local [all …]
|
D | w83977af_ir.c | 91 static int w83977af_close(struct w83977af_ir *self); 93 static int w83977af_dma_receive(struct w83977af_ir *self); 94 static int w83977af_dma_receive_complete(struct w83977af_ir *self); 98 static void w83977af_dma_write(struct w83977af_ir *self, int iobase); 99 static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed); 100 static int w83977af_is_receiving(struct w83977af_ir *self); 160 struct w83977af_ir *self; in w83977af_open() local 187 self = netdev_priv(dev); in w83977af_open() 188 spin_lock_init(&self->lock); in w83977af_open() 192 self->io.fir_base = iobase; in w83977af_open() [all …]
|
D | sh_sir.c | 125 static void sh_sir_write(struct sh_sir_self *self, u32 offset, u16 data) in sh_sir_write() argument 127 iowrite16(data, self->membase + offset); in sh_sir_write() 130 static u16 sh_sir_read(struct sh_sir_self *self, u32 offset) in sh_sir_read() argument 132 return ioread16(self->membase + offset); in sh_sir_read() 135 static void sh_sir_update_bits(struct sh_sir_self *self, u32 offset, in sh_sir_update_bits() argument 140 old = sh_sir_read(self, offset); in sh_sir_update_bits() 143 sh_sir_write(self, offset, new); in sh_sir_update_bits() 153 static void sh_sir_crc_reset(struct sh_sir_self *self) in sh_sir_crc_reset() argument 155 sh_sir_write(self, IRIF_CRC0, CRC_RST); in sh_sir_crc_reset() 158 static void sh_sir_crc_add(struct sh_sir_self *self, u8 data) in sh_sir_crc_add() argument [all …]
|
/linux-2.6.39/net/irda/irnet/ |
D | irnet_irda.c | 23 irnet_socket * self = in irnet_ppp_disconnect() local 26 if (self == NULL) in irnet_ppp_disconnect() 32 if (self->ppp_open && !self->ttp_open && !self->ttp_connect) { in irnet_ppp_disconnect() 33 ppp_unregister_channel(&self->chan); in irnet_ppp_disconnect() 34 self->ppp_open = 0; in irnet_ppp_disconnect() 124 irnet_open_tsap(irnet_socket * self) in irnet_open_tsap() argument 128 DENTER(IRDA_SR_TRACE, "(self=0x%p)\n", self); in irnet_open_tsap() 130 DABORT(self->tsap != NULL, -EBUSY, IRDA_SR_ERROR, "Already busy !\n"); in irnet_open_tsap() 141 notify.instance = self; in irnet_open_tsap() 145 self->tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, in irnet_open_tsap() [all …]
|
/linux-2.6.39/net/irda/irlan/ |
D | irlan_client_event.c | 39 static int irlan_client_state_idle (struct irlan_cb *self, IRLAN_EVENT event, 41 static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, 43 static int irlan_client_state_conn (struct irlan_cb *self, IRLAN_EVENT event, 45 static int irlan_client_state_info (struct irlan_cb *self, IRLAN_EVENT event, 47 static int irlan_client_state_media(struct irlan_cb *self, IRLAN_EVENT event, 49 static int irlan_client_state_open (struct irlan_cb *self, IRLAN_EVENT event, 51 static int irlan_client_state_wait (struct irlan_cb *self, IRLAN_EVENT event, 53 static int irlan_client_state_arb (struct irlan_cb *self, IRLAN_EVENT event, 55 static int irlan_client_state_data (struct irlan_cb *self, IRLAN_EVENT event, 57 static int irlan_client_state_close(struct irlan_cb *self, IRLAN_EVENT event, [all …]
|
D | irlan_client.c | 68 static void irlan_check_response_param(struct irlan_cb *self, char *param, 70 static void irlan_client_open_ctrl_tsap(struct irlan_cb *self); 74 struct irlan_cb *self = (struct irlan_cb *) data; in irlan_client_kick_timer_expired() local 78 IRDA_ASSERT(self != NULL, return;); in irlan_client_kick_timer_expired() 79 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); in irlan_client_kick_timer_expired() 86 if ((self->provider.access_type == ACCESS_PEER) && in irlan_client_kick_timer_expired() 87 (self->client.state == IRLAN_IDLE) && in irlan_client_kick_timer_expired() 88 (self->provider.state != IRLAN_IDLE)) { in irlan_client_kick_timer_expired() 89 irlan_client_wakeup(self, self->saddr, self->daddr); in irlan_client_kick_timer_expired() 93 static void irlan_client_start_kick_timer(struct irlan_cb *self, int timeout) in irlan_client_start_kick_timer() argument [all …]
|
D | irlan_common.c | 103 static void __irlan_close(struct irlan_cb *self); 107 static void irlan_open_unicast_addr(struct irlan_cb *self); 108 static void irlan_get_unicast_addr(struct irlan_cb *self); 109 void irlan_close_tsaps(struct irlan_cb *self); 175 struct irlan_cb *self, *next; in irlan_cleanup() local 188 list_for_each_entry_safe(self, next, &irlans, dev_list) { in irlan_cleanup() 189 __irlan_close(self); in irlan_cleanup() 203 struct irlan_cb *self; in irlan_open() local 212 self = netdev_priv(dev); in irlan_open() 213 self->dev = dev; in irlan_open() [all …]
|
/linux-2.6.39/tools/perf/util/ |
D | thread.c | 12 struct thread *self = zalloc(sizeof(*self)); in thread__new() local 14 if (self != NULL) { in thread__new() 15 map_groups__init(&self->mg); in thread__new() 16 self->pid = pid; in thread__new() 17 self->comm = malloc(32); in thread__new() 18 if (self->comm) in thread__new() 19 snprintf(self->comm, 32, ":%d", self->pid); in thread__new() 22 return self; in thread__new() 25 void thread__delete(struct thread *self) in thread__delete() argument 27 map_groups__exit(&self->mg); in thread__delete() [all …]
|
/linux-2.6.39/tools/perf/scripts/python/ |
D | sched-migration.py | 39 def __repr__(self): argument 47 def __init__(self, sleeper): argument 48 self.sleeper = sleeper 50 def __repr__(self): argument 51 return "%s gone to sleep" % thread_name(self.sleeper) 58 def __init__(self, wakee): argument 59 self.wakee = wakee 61 def __repr__(self): argument 62 return "%s woke up" % thread_name(self.wakee) 69 def __init__(self, child): argument [all …]
|