Lines Matching defs:pplist

139 static struct parport_list  pplist;
172 #define inb_data(fd) ieee1284_read_data(pplist.portv[fd]);
173 #define inb_stat(fd) (ieee1284_read_status(pplist.portv[fd]) ^ S1284_INVERTED)
174 #define inb_ctrl(fd) (ieee1284_read_control(pplist.portv[fd]) ^ C1284_INVERTED)
179 ieee1284_epp_read_data(pplist.portv[fd], 0, (char *)&val, 1);
185 ieee1284_epp_write_data(pplist.portv[fd], 0, (const char *)&val, 1);
188 #define outb_data(fd,val) ieee1284_write_data(pplist.portv[fd], val)
189 #define outb_ctrl(fd,val) ieee1284_write_control(pplist.portv[fd], \
193 ieee1284_epp_write_addr (pplist.portv[fd], 0, (char *)&val, 1);
667 result = ieee1284_find_ports( &pplist, 0 );
676 DBG( 3, "pp_init: %d ports reported by IEEE 1284 library\n", pplist.portc);
678 for( i = 0; i < pplist.portc; i++ )
679 DBG( 6, "pp_init: port %d is `%s`\n", i, pplist.portv[i]->name);
682 if( pplist.portc > _MAX_PORTS ) {
684 pplist.portc );
686 ieee1284_free_ports( &pplist );
752 for( i = 0; i < pplist.portc; i++ ) {
753 DBG( 5, "pp_open: checking >%s<\n", pplist.portv[i]->name );
754 if( !strcmp(pplist.portv[i]->name, dev))
758 if( pplist.portc <= i ) {
799 result = ieee1284_open( pplist.portv[i], 0, &port[i].caps );
849 DBG( 6, "pp_close: this is port '%s'\n", pplist.portv[fd]->name );
865 if((result = ieee1284_close(pplist.portv[fd])) < 0) {
871 pplist.portv[fd]->name, pp_libieee1284_errorstr(result));
930 if((fd < 0) || (fd >= pplist.portc)) {
942 DBG( 6, "sanei_pp_close: port is '%s'\n", pplist.portv[fd]->name );
966 if((fd < 0) || (fd >= pplist.portc)) {
971 result = ieee1284_claim (pplist.portv[fd]);
990 if((fd < 0) || (fd >= pplist.portc)) {
995 ieee1284_release( pplist.portv[fd] );
1009 if ((fd < 0) || (fd >= pplist.portc)) {
1028 if ((fd < 0) || (fd >= pplist.portc)) {
1047 if ((fd < 0) || (fd >= pplist.portc)) {
1066 if ((fd < 0) || (fd >= pplist.portc)) {
1085 if ((fd < 0) || (fd >= pplist.portc)) {
1103 if ((fd < 0) || (fd >= pplist.portc)) {
1120 if ((fd < 0) || (fd >= pplist.portc)) {
1138 if ((fd < 0) || (fd >= pplist.portc)) {
1153 if ((fd < 0) || (fd >= pplist.portc)) {
1173 if ((fd < 0) || (fd >= pplist.portc)) {
1199 result = ieee1284_negotiate( pplist.portv[fd], mode );
1240 if ((fd < 0) || (fd >= pplist.portc)) {
1251 ieee1284_data_dir( pplist.portv[fd], rev );