Lines Matching +full:cs +full:- +full:3
55 #define RING_TIMEOUT 3 /* for additional parameters to RING */
57 #define ATRDY_TIMEOUT 3 /* for HD_READY_SEND_ATDATA */
59 #define BAS_RETRY 3 /* max. retries for base USB ops */
61 #define MAXACT 3
75 DEBUG_TRANSCMD = 0x02000, /* AT-COMMANDS+RESPONSES */
118 #define ZSAU_ACTIVE 3
121 #define ZSAU_UNKNOWN -1
171 #define BAS_INURBS 3
172 #define BAS_OUTURBS 3
178 #define AT_BC 3
189 #define VAR_NUM 3
194 #define STR_ZBC 3
198 #define EV_TIMEOUT -105
199 #define EV_IF_VER -106
200 #define EV_PROC_CIDMODE -107
201 #define EV_SHUTDOWN -108
202 #define EV_START -110
203 #define EV_STOP -111
204 #define EV_IF_LOCK -112
205 #define EV_ACCEPT -114
206 #define EV_DIAL -115
207 #define EV_HUP -116
208 #define EV_BC_OPEN -117
209 #define EV_BC_CLOSED -118
232 #define MS_SHUTDOWN 3
240 #define M_CID 3
278 struct cardstate *cs; member
286 * - data[read..nextread-1] is valid data already submitted to the USB subsystem
287 * - data[nextread..write-1] is valid data yet to be sent
288 * - data[write] is the next byte to write to
289 * - in byte-oriented L2 procotols, it is completely free
290 * - in bit-oriented L2 procotols, it may contain a partial byte of valid data
291 * - data[write+1..read-1] is free
292 * - wbits is the number of valid data bits in data[write], starting at the LSB
293 * - writesem is the semaphore for writing to the buffer:
294 * if writesem <= 0, data[write..read-1] is currently being written to
295 * - idle contains the byte value to repeat when the end of valid data is
314 * - urb: pointer to the URB itself
315 * - bcs: pointer to the B Channel control structure
316 * - limit: end of write buffer area covered by this URB
317 * - status: URB completion status
345 struct cardstate *cs; member
357 /* This buffer holds all information about the used B-Channel */
360 struct sk_buff_head squeue; /* B-Channel send Queue */
377 struct cardstate *cs; member
468 (ZDLE=1 received -- M10x only) */
478 * -> for modem reponses (and
480 * -> on timeout
481 * -> after setting bits in
512 struct cardstate *cs; member
566 /* Called from ev-layer.c/interface.c for sending AT commands to the
568 int (*write_cmd)(struct cardstate *cs, struct cmdbuf_t *cb);
571 int (*write_room)(struct cardstate *cs);
572 int (*chars_in_buffer)(struct cardstate *cs);
573 int (*brkchars)(struct cardstate *cs, const unsigned char buf[6]);
575 /* Called from ev-layer.c after setting up connection
579 /* Called from ev-layer.c after hanging up
583 /* Called by gigaset_initcs() for setting up bcs->hw.xxx */
586 /* Called by gigaset_freecs() for freeing bcs->hw.xxx */
589 /* Called by gigaset_bchannel_down() for resetting bcs->hw.xxx */
592 /* Called by gigaset_initcs() for setting up cs->hw.xxx */
593 int (*initcshw)(struct cardstate *cs);
595 /* Called by gigaset_freecs() for freeing cs->hw.xxx */
596 void (*freecshw)(struct cardstate *cs);
600 int (*set_modem_ctrl)(struct cardstate *cs, unsigned old_state,
602 int (*baud_rate)(struct cardstate *cs, unsigned cflag);
603 int (*set_line_ctrl)(struct cardstate *cs, unsigned cflag);
605 /* Called from LL interface to put an skb into the send-queue.
610 /* Called from ev-layer.c to process a block of data
619 /* Parser states for DLE-Event:
620 * <DLE-EVENT>: <DLE_FLAG> "X" <EVENT> <DLE_FLAG> "."
622 * <EVENT>: ((a-z)* | (A-Z)* | (0-10)*)+
633 /* Called from ev-layer.c to process a block of data
644 /* Called from ev-layer.c to process a block of data
648 /* Called from bas-gigaset.c to process a block of data
653 /* Called from bas-gigaset.c to put a block of data
657 /* Called from bas-gigaset.c to initialize the isochronous output buffer */
660 /* Called from bas-gigaset.c to retrieve a block of bytes for sending */
670 int gigaset_isdn_regdev(struct cardstate *cs, const char *isdnid);
671 void gigaset_isdn_unregdev(struct cardstate *cs);
678 /* Called from common.c/ev-layer.c to indicate events relevant to the LL */
679 void gigaset_isdn_start(struct cardstate *cs);
680 void gigaset_isdn_stop(struct cardstate *cs);
688 * Functions implemented in ev-layer.c
696 void gigaset_handle_modem_response(struct cardstate *cs);
703 void gigaset_init_dev_sysfs(struct cardstate *cs);
704 void gigaset_free_dev_sysfs(struct cardstate *cs);
712 struct cardstate *cs, int cid);
714 struct bc_state *gigaset_get_free_channel(struct cardstate *cs);
716 int gigaset_get_channels(struct cardstate *cs);
717 void gigaset_free_channels(struct cardstate *cs);
718 void gigaset_block_channels(struct cardstate *cs);
735 gigaset_init[b]cs(). */
740 /* Free card state. Calls hardware dependent gigaset_free[b]cs(). */
741 void gigaset_freecs(struct cardstate *cs);
744 int gigaset_start(struct cardstate *cs);
747 void gigaset_stop(struct cardstate *cs);
750 int gigaset_shutdown(struct cardstate *cs);
759 struct event_t *gigaset_add_event(struct cardstate *cs,
764 int gigaset_enterconfigmode(struct cardstate *cs);
766 /* cs->lock must not be locked */
767 static inline void gigaset_schedule_event(struct cardstate *cs) in gigaset_schedule_event() argument
770 spin_lock_irqsave(&cs->lock, flags); in gigaset_schedule_event()
771 if (cs->running) in gigaset_schedule_event()
772 tasklet_schedule(&cs->event_tasklet); in gigaset_schedule_event()
773 spin_unlock_irqrestore(&cs->lock, flags); in gigaset_schedule_event()
777 /* cs->lock must not be locked */
780 gigaset_add_event(bcs->cs, &bcs->at_state, EV_BC_CLOSED, NULL, 0, NULL); in gigaset_bchannel_down()
781 gigaset_schedule_event(bcs->cs); in gigaset_bchannel_down()
785 /* cs->lock must not be locked */
788 gigaset_add_event(bcs->cs, &bcs->at_state, EV_BC_OPEN, NULL, 0, NULL); in gigaset_bchannel_up()
789 gigaset_schedule_event(bcs->cs); in gigaset_bchannel_up()
795 struct cardstate *cs = bcs->cs; in gigaset_new_rx_skb() local
796 unsigned short hw_hdr_len = cs->hw_hdr_len; in gigaset_new_rx_skb()
798 if (bcs->ignore) { in gigaset_new_rx_skb()
799 bcs->rx_skb = NULL; in gigaset_new_rx_skb()
801 bcs->rx_skb = dev_alloc_skb(bcs->rx_bufsize + hw_hdr_len); in gigaset_new_rx_skb()
802 if (bcs->rx_skb == NULL) in gigaset_new_rx_skb()
803 dev_warn(cs->dev, "could not allocate skb\n"); in gigaset_new_rx_skb()
805 skb_reserve(bcs->rx_skb, hw_hdr_len); in gigaset_new_rx_skb()
807 return bcs->rx_skb; in gigaset_new_rx_skb()
824 void gigaset_if_init(struct cardstate *cs);
826 void gigaset_if_free(struct cardstate *cs);
828 void gigaset_if_receive(struct cardstate *cs,