Home
last modified time | relevance | path

Searched refs:lap (Results 1 – 12 of 12) sorted by relevance

/drivers/staging/irda/net/
Dirlmp.c232 struct lap_cb *lap; in irlmp_close_lsap() local
242 lap = self->lap; in irlmp_close_lsap()
243 if (lap) { in irlmp_close_lsap()
244 IRDA_ASSERT(lap->magic == LMP_LAP_MAGIC, return;); in irlmp_close_lsap()
251 irlmp_do_lap_event(self->lap, in irlmp_close_lsap()
255 lsap = hashbin_remove(lap->lsaps, (long) self, NULL); in irlmp_close_lsap()
257 lap->cache.valid = FALSE; in irlmp_close_lsap()
260 self->lap = NULL; in irlmp_close_lsap()
284 struct lap_cb *lap; in irlmp_register_link() local
293 lap = kzalloc(sizeof(struct lap_cb), GFP_KERNEL); in irlmp_register_link()
[all …]
Dirlmp_event.c511 irlmp_do_lap_event(self->lap, LM_LAP_CONNECT_REQUEST, NULL); in irlmp_state_disconnected()
538 irlmp_do_lap_event(self->lap, LM_LAP_CONNECT_REQUEST, NULL); in irlmp_state_disconnected()
573 IRDA_ASSERT(self->lap != NULL, return -1;); in irlmp_state_connect()
574 IRDA_ASSERT(self->lap->lsaps != NULL, return -1;); in irlmp_state_connect()
576 hashbin_insert(self->lap->lsaps, (irda_queue_t *) self, in irlmp_state_connect()
581 irlmp_send_lcf_pdu(self->lap, self->dlsap_sel, in irlmp_state_connect()
594 self->lap = NULL; in irlmp_state_connect()
655 self->lap = NULL; in irlmp_state_connect_pend()
686 IRDA_ASSERT(self->lap != NULL, return -1;); in irlmp_state_dtr()
690 irlmp_send_data_pdu(self->lap, self->dlsap_sel, in irlmp_state_dtr()
[all …]
Dirlmp_frame.c151 lsap->lap = self; in irlmp_link_data_indication()
262 void irlmp_link_disconnect_indication(struct lap_cb *lap, in irlmp_link_disconnect_indication() argument
267 IRDA_ASSERT(lap != NULL, return;); in irlmp_link_disconnect_indication()
268 IRDA_ASSERT(lap->magic == LMP_LAP_MAGIC, return;); in irlmp_link_disconnect_indication()
270 lap->reason = reason; in irlmp_link_disconnect_indication()
271 lap->daddr = DEV_ADDR_ANY; in irlmp_link_disconnect_indication()
278 irlmp_do_lap_event(lap, LM_LAP_DISCONNECT_INDICATION, NULL); in irlmp_link_disconnect_indication()
390 static inline void irlmp_update_cache(struct lap_cb *lap, in irlmp_update_cache() argument
394 lap->cache.valid = FALSE; in irlmp_update_cache()
396 lap->cache.dlsap_sel = lsap->dlsap_sel; in irlmp_update_cache()
[all …]
Dirlap.c210 struct irlap_cb *lap; in irlap_close() local
224 lap = hashbin_remove(irlap, self->saddr, NULL); in irlap_close()
225 if (!lap) { in irlap_close()
229 __irlap_close(lap); in irlap_close()
/drivers/staging/irda/include/net/irda/
Dirlmp.h118 struct lap_cb *lap; /* Pointer to LAP connection structure */ member
251 return (self && self->lap) ? self->lap->saddr : 0; in irlmp_get_saddr()
256 return (self && self->lap) ? self->lap->daddr : 0; in irlmp_get_daddr()
273 if (self->lap == NULL) in irlmp_lap_tx_queue_full()
275 if (self->lap->irlap == NULL) in irlmp_lap_tx_queue_full()
278 return IRLAP_GET_TX_QUEUE_LEN(self->lap->irlap) >= LAP_HIGH_THRESHOLD; in irlmp_lap_tx_queue_full()
289 self->lap = NULL; in irlmp_listen()
Dirttp.h204 (self->lsap->lap == NULL) || in irttp_is_primary()
205 (self->lsap->lap->irlap == NULL)) in irttp_is_primary()
207 return irlap_is_primary(self->lsap->lap->irlap); in irttp_is_primary()
/drivers/ide/
Dpiix.c274 const struct ich_laptop *lap = &ich_laptop[0]; in piix_cable_detect() local
278 while (lap->device) { in piix_cable_detect()
279 if (lap->device == pdev->device && in piix_cable_detect()
280 lap->subvendor == pdev->subsystem_vendor && in piix_cable_detect()
281 lap->subdevice == pdev->subsystem_device) { in piix_cable_detect()
284 lap++; in piix_cable_detect()
Dsis5513.c527 const struct sis_laptop *lap = &sis_laptop[0]; in sis_cable_detect() local
530 while (lap->device) { in sis_cable_detect()
531 if (lap->device == pdev->device && in sis_cable_detect()
532 lap->subvendor == pdev->subsystem_vendor && in sis_cable_detect()
533 lap->subdevice == pdev->subsystem_device) in sis_cable_detect()
535 lap++; in sis_cable_detect()
/drivers/ata/
Dpata_sis.c64 const struct sis_laptop *lap = &sis_laptop[0]; in sis_short_ata40() local
66 while (lap->device) { in sis_short_ata40()
67 if (lap->device == dev->device && in sis_short_ata40()
68 lap->subvendor == dev->subsystem_vendor && in sis_short_ata40()
69 lap->subdevice == dev->subsystem_device) in sis_short_ata40()
71 lap++; in sis_short_ata40()
Data_piix.c526 const struct ich_laptop *lap = &ich_laptop[0]; in ich_pata_cable_detect() local
530 while (lap->device) { in ich_pata_cable_detect()
531 if (lap->device == pdev->device && in ich_pata_cable_detect()
532 lap->subvendor == pdev->subsystem_vendor && in ich_pata_cable_detect()
533 lap->subdevice == pdev->subsystem_device) in ich_pata_cable_detect()
536 lap++; in ich_pata_cable_detect()
/drivers/s390/char/
Dsclp_early_core.c26 cr0_new.lap = 0; in sclp_early_wait_irq()
/drivers/infiniband/core/
Dcm.c191 static CM_COUNTER_ATTR(lap, CM_LAP_COUNTER);