Home
last modified time | relevance | path

Searched refs:ring_buff_p (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/uts/common/io/1394/targets/dcam1394/
H A Ddcam_ring_buff.c64 ring_buff_t *ring_buff_p; in ring_buff_create() local
69 ring_buff_p = (ring_buff_t *)kmem_alloc(num_bytes, KM_SLEEP); in ring_buff_create()
71 ring_buff_p->num_buffs = num_buffs; in ring_buff_create()
72 ring_buff_p->buff_num_bytes = buff_num_bytes; in ring_buff_create()
73 ring_buff_p->write_ptr_pos = 0; in ring_buff_create()
74 ring_buff_p->num_read_ptrs = 0; in ring_buff_create()
75 ring_buff_p->read_ptr_incr_val = 1; in ring_buff_create()
78 ring_buff_p->read_ptr_pos[i] = (size_t)-1; in ring_buff_create()
83 ring_buff_p->buff_info_array_p = in ring_buff_create()
88 buff_info_p = &(ring_buff_p->buff_info_array_p[buff]); in ring_buff_create()
[all …]
H A Ddcam_frame.c181 if ((softc_p->ring_buff_p = ring_buff_create(softc_p, in dcam_frame_rcv_init()
186 softc_p->ring_buff_p->read_ptr_pos[0] = 0; in dcam_frame_rcv_init()
214 for (frame = 0; frame < softc_p->ring_buff_p->num_buffs; frame++) { in dcam_frame_rcv_init()
216 buff_info_p = &(softc_p->ring_buff_p->buff_info_array_p[frame]); in dcam_frame_rcv_init()
510 ring_buff_free(softc_p, softc_p->ring_buff_p); in dcam_free_resources()
542 ring_buff_t *ring_buff_p; in dcam_frame_is_done() local
557 if ((ring_buff_p = softc_p->ring_buff_p) == NULL) { in dcam_frame_is_done()
563 write_ptr_pos = ring_buff_write_ptr_pos_get(ring_buff_p); in dcam_frame_is_done()
569 ring_buff_p->buff_info_array_p[write_ptr_pos].vid_mode = vid_mode; in dcam_frame_is_done()
579 ring_buff_p->buff_info_array_p[write_ptr_pos].seq_num = in dcam_frame_is_done()
[all …]
H A Ddcam.c674 ring_buff_t *ring_buff_p; in dcam_read() local
688 if ((ring_buff_p = softc_p->ring_buff_p) == NULL) { in dcam_read()
702 read_ptr_pos = ring_buff_read_ptr_pos_get(ring_buff_p, in dcam_read()
705 write_ptr_pos = ring_buff_write_ptr_pos_get(ring_buff_p); in dcam_read()
713 read_ptr_pos = ring_buff_p->num_buffs - 1; in dcam_read()
724 &(ring_buff_p->buff_info_array_p[read_ptr_pos]); in dcam_read()
822 ring_buff_read_ptr_incr(ring_buff_p, read_ptr_id); in dcam_read()
974 if (softc_p->ring_buff_p == NULL) { in dcam_ioctl()
982 for (i = 0; i < softc_p->ring_buff_p->num_read_ptrs; i++) { in dcam_ioctl()
983 softc_p->ring_buff_p->read_ptr_pos[i] = in dcam_ioctl()
[all …]
H A Ddcam_param.c1026 if (softc_p->ring_buff_p == NULL) { in param_ring_buff_num_frames_ready_get()
1032 read_pos = ring_buff_read_ptr_pos_get(softc_p->ring_buff_p, 0); in param_ring_buff_num_frames_ready_get()
1033 write_pos = ring_buff_write_ptr_pos_get(softc_p->ring_buff_p); in param_ring_buff_num_frames_ready_get()
1038 *val_p = (softc_p->ring_buff_p->num_buffs + write_pos) - in param_ring_buff_num_frames_ready_get()
1055 if (softc_p->ring_buff_p == NULL) { in param_ring_buff_read_ptr_incr_get()
1059 *val_p = softc_p->ring_buff_p->read_ptr_incr_val; in param_ring_buff_read_ptr_incr_get()
1071 if (softc_p->ring_buff_p == NULL) { in param_ring_buff_read_ptr_incr_set()
1075 softc_p->ring_buff_p->read_ptr_incr_val = val; in param_ring_buff_read_ptr_incr_set()
/illumos-gate/usr/src/uts/common/sys/1394/targets/dcam1394/
H A Ddcam.h114 ring_buff_t *ring_buff_p; member
156 void ring_buff_free(dcam_state_t *softc_p, ring_buff_t *ring_buff_p);
157 int ring_buff_reader_add(ring_buff_t *ring_buff_p);
158 int ring_buff_reader_remove(ring_buff_t *ring_buff_p, int reader_id);
159 buff_info_t *ring_buff_read_ptr_buff_get(ring_buff_t *ring_buff_p, int
161 size_t ring_buff_read_ptr_pos_get(ring_buff_t *ring_buff_p, int read_ptr_id);
162 void ring_buff_read_ptr_incr(ring_buff_t *ring_buff_p, int read_ptr_id);
163 size_t ring_buff_write_ptr_pos_get(ring_buff_t *ring_buff_p);
164 void ring_buff_write_ptr_incr(ring_buff_t *ring_buff_p);