Lines Matching refs:dma_stuff

1001         memcpy(&card->dma_stuff->read_ccw,READ_CCW,sizeof(ccw1_t));  in qeth_issue_next_read()
1002 card->dma_stuff->read_ccw.count=QETH_BUFSIZE; in qeth_issue_next_read()
1004 card->dma_stuff->read_ccw.cda=QETH_GET_ADDR(card->dma_stuff->recbuf); in qeth_issue_next_read()
1008 result=do_IO(card->irq0,&card->dma_stuff->read_ccw, in qeth_issue_next_read()
1012 result2=do_IO(card->irq0,&card->dma_stuff->read_ccw, in qeth_issue_next_read()
2991 memcpy(card->dma_stuff->sendbuf,card->send_buf,QETH_BUFSIZE); in qeth_send_control_data()
3006 memcpy(&card->dma_stuff->write_ccw,WRITE_CCW,sizeof(ccw1_t)); in qeth_send_control_data()
3007 card->dma_stuff->write_ccw.count=len; in qeth_send_control_data()
3008 card->dma_stuff->write_ccw.cda= in qeth_send_control_data()
3009 QETH_GET_ADDR(card->dma_stuff->sendbuf); in qeth_send_control_data()
3019 result=do_IO(card->irq1,&card->dma_stuff->write_ccw,intparam,0,0); in qeth_send_control_data()
3022 result2=do_IO(card->irq1,&card->dma_stuff->write_ccw, in qeth_send_control_data()
3048 rec_buf=card->dma_stuff->recbuf; in qeth_send_control_data()
3270 data_len = *((__u16*)QETH_IPA_PDU_LEN_PDU1(card->dma_stuff->recbuf)); in qeth_ioctl_handle_snmp_data()
3421 reply=(arp_cmd_t*)PDU_ENCAPSULATION(card->dma_stuff->recbuf); in qeth_look_for_arp_data()
6360 problem=qeth_get_cards_problem(card,card->dma_stuff->recbuf, in qeth_interrupt_handler_read()
6409 if ( (!IS_IPA(card->dma_stuff->recbuf))|| in qeth_interrupt_handler_read()
6410 (IS_IPA(card->dma_stuff->recbuf)&& in qeth_interrupt_handler_read()
6411 IS_IPA_REPLY(card->dma_stuff->recbuf)) ) { in qeth_interrupt_handler_read()
6425 memcpy(card->ipa_buf,card->dma_stuff->recbuf,QETH_BUFSIZE); in qeth_interrupt_handler_read()
6805 if (card->dma_stuff) kfree(card->dma_stuff); in qeth_free_card()
7032 memcpy(&card->dma_stuff->write_ccw,WRITE_CCW,sizeof(ccw1_t)); in qeth_idx_activate_read()
7033 card->dma_stuff->write_ccw.count=IDX_ACTIVATE_SIZE; in qeth_idx_activate_read()
7034 card->dma_stuff->write_ccw.cda= in qeth_idx_activate_read()
7035 QETH_GET_ADDR(card->dma_stuff->sendbuf); in qeth_idx_activate_read()
7037 memcpy(card->dma_stuff->sendbuf,IDX_ACTIVATE_READ, in qeth_idx_activate_read()
7039 memcpy(QETH_TRANSPORT_HEADER_SEQ_NO(card->dma_stuff->sendbuf), in qeth_idx_activate_read()
7042 memcpy(QETH_IDX_ACT_ISSUER_RM_TOKEN(card->dma_stuff->sendbuf), in qeth_idx_activate_read()
7044 memcpy(QETH_IDX_ACT_FUNC_LEVEL(card->dma_stuff->sendbuf), in qeth_idx_activate_read()
7048 memcpy(QETH_IDX_ACT_QDIO_DEV_CUA(card->dma_stuff->sendbuf), in qeth_idx_activate_read()
7051 memcpy(QETH_IDX_ACT_QDIO_DEV_REALADDR(card->dma_stuff->sendbuf), in qeth_idx_activate_read()
7056 QETH_DBF_HEX2(0,control,card->dma_stuff->sendbuf, in qeth_idx_activate_read()
7060 result=do_IO(card->irq0,&card->dma_stuff->write_ccw, in qeth_idx_activate_read()
7064 result2=do_IO(card->irq0,&card->dma_stuff->write_ccw, in qeth_idx_activate_read()
7091 memcpy(&card->dma_stuff->read_ccw,READ_CCW,sizeof(ccw1_t)); in qeth_idx_activate_read()
7092 card->dma_stuff->read_ccw.count=QETH_BUFSIZE; in qeth_idx_activate_read()
7093 card->dma_stuff->read_ccw.cda=QETH_GET_ADDR(card->dma_stuff->recbuf); in qeth_idx_activate_read()
7097 result=do_IO(card->irq0,&card->dma_stuff->read_ccw, in qeth_idx_activate_read()
7101 result2=do_IO(card->irq0,&card->dma_stuff->read_ccw, in qeth_idx_activate_read()
7128 QETH_DBF_HEX2(0,control,card->dma_stuff->recbuf, in qeth_idx_activate_read()
7131 if (!(QETH_IS_IDX_ACT_POS_REPLY(card->dma_stuff->recbuf))) { in qeth_idx_activate_read()
7141 ((!QETH_IDX_NO_PORTNAME_REQUIRED(card->dma_stuff->recbuf))&& in qeth_idx_activate_read()
7148 memcpy(&temp,QETH_IDX_ACT_FUNC_LEVEL(card->dma_stuff->recbuf),2); in qeth_idx_activate_read()
7162 QETH_IDX_ACT_ISSUER_RM_TOKEN(card->dma_stuff->recbuf), in qeth_idx_activate_read()
7166 QETH_IDX_REPLY_LEVEL(card->dma_stuff->recbuf), in qeth_idx_activate_read()
7181 memcpy(&card->dma_stuff->write_ccw,WRITE_CCW,sizeof(ccw1_t)); in qeth_idx_activate_write()
7182 card->dma_stuff->write_ccw.count=IDX_ACTIVATE_SIZE; in qeth_idx_activate_write()
7183 card->dma_stuff->write_ccw.cda= in qeth_idx_activate_write()
7184 QETH_GET_ADDR(card->dma_stuff->sendbuf); in qeth_idx_activate_write()
7186 memcpy(card->dma_stuff->sendbuf,IDX_ACTIVATE_WRITE, in qeth_idx_activate_write()
7188 memcpy(QETH_TRANSPORT_HEADER_SEQ_NO(card->dma_stuff->sendbuf), in qeth_idx_activate_write()
7192 memcpy(QETH_IDX_ACT_ISSUER_RM_TOKEN(card->dma_stuff->sendbuf), in qeth_idx_activate_write()
7194 memcpy(QETH_IDX_ACT_FUNC_LEVEL(card->dma_stuff->sendbuf), in qeth_idx_activate_write()
7198 memcpy(QETH_IDX_ACT_QDIO_DEV_CUA(card->dma_stuff->sendbuf), in qeth_idx_activate_write()
7201 memcpy(QETH_IDX_ACT_QDIO_DEV_REALADDR(card->dma_stuff->sendbuf), in qeth_idx_activate_write()
7206 QETH_DBF_HEX2(0,control,card->dma_stuff->sendbuf, in qeth_idx_activate_write()
7210 result=do_IO(card->irq1,&card->dma_stuff->write_ccw, in qeth_idx_activate_write()
7214 result2=do_IO(card->irq1,&card->dma_stuff->write_ccw, in qeth_idx_activate_write()
7244 memcpy(&card->dma_stuff->read_ccw,READ_CCW,sizeof(ccw1_t)); in qeth_idx_activate_write()
7245 card->dma_stuff->read_ccw.count=QETH_BUFSIZE; in qeth_idx_activate_write()
7249 card->dma_stuff->read_ccw.cda=QETH_GET_ADDR(card->dma_stuff->recbuf); in qeth_idx_activate_write()
7253 result=do_IO(card->irq1,&card->dma_stuff->read_ccw, in qeth_idx_activate_write()
7257 result2=do_IO(card->irq1,&card->dma_stuff->read_ccw, in qeth_idx_activate_write()
7284 QETH_DBF_HEX2(0,control,card->dma_stuff->recbuf, in qeth_idx_activate_write()
7287 if (!(QETH_IS_IDX_ACT_POS_REPLY(card->dma_stuff->recbuf))) { in qeth_idx_activate_write()
7296 memcpy(&temp,QETH_IDX_ACT_FUNC_LEVEL(card->dma_stuff->recbuf),2); in qeth_idx_activate_write()
8008 card->dma_stuff->write_ccw.cmd_code=CCW_NOP_CMD; in qeth_send_nops()
8009 card->dma_stuff->write_ccw.flags=CCW_FLAG_SLI; in qeth_send_nops()
8010 card->dma_stuff->write_ccw.count=CCW_NOP_COUNT; in qeth_send_nops()
8011 card->dma_stuff->write_ccw.cda=(unsigned long)NULL; in qeth_send_nops()
8020 result=do_IO(irq,&card->dma_stuff->write_ccw,NOP_STATE,0,0); \ in qeth_send_nops()
8023 result2=do_IO(irq,&card->dma_stuff->write_ccw, \ in qeth_send_nops()
8635 card->dma_stuff=(qeth_dma_stuff_t*)kmalloc(sizeof(qeth_dma_stuff_t), in qeth_alloc_card()
8637 if (!card->dma_stuff) goto exit_dma; in qeth_alloc_card()
8638 memset(card->dma_stuff,0,sizeof(qeth_dma_stuff_t)); in qeth_alloc_card()
8640 card->dma_stuff->recbuf=(char*)kmalloc(QETH_BUFSIZE,GFP_DMA); in qeth_alloc_card()
8641 if (!card->dma_stuff->recbuf) goto exit_dma1; in qeth_alloc_card()
8642 memset(card->dma_stuff->recbuf,0,QETH_BUFSIZE); in qeth_alloc_card()
8644 card->dma_stuff->sendbuf=(char*)kmalloc(QETH_BUFSIZE,GFP_DMA); in qeth_alloc_card()
8645 if (!card->dma_stuff->sendbuf) goto exit_dma2; in qeth_alloc_card()
8646 memset(card->dma_stuff->sendbuf,0,QETH_BUFSIZE); in qeth_alloc_card()
8720 kfree(card->dma_stuff->sendbuf); in qeth_alloc_card()
8722 kfree(card->dma_stuff->recbuf); in qeth_alloc_card()
8724 kfree(card->dma_stuff); in qeth_alloc_card()