• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/amazon/files/drivers/atm/

Lines Matching defs:data

134 int amazon_atm_read_procmem(char *buf, char **start, off_t offset,int count, int *eof, void *data);
136 amazon_atm_dev_t g_atm_dev; //device data
236 * use skb_reserve to adjust the data pointer
242 if ( ( ((u32) (skb->data)) & 15) != 0){
244 skb_reserve(skb, 16 - (((u32) (skb->data)) & 15) );
290 * Parameters: vcc - VCC data structure
364 * Brief: dump skb data
366 static inline void dump_skb(u32 len, char * data)
371 printk("%2.2x ",(u8)(data[i]));
500 swex_start_task.data = irq_stat;
540 a5r_task.data = qid;
576 static int inline amazon_handle_oam_cell(void *data, u8 vpi, u16 vci,u32 status)
603 (*vcc->push_oam)(vcc,data);
605 amz_push_oam(data);
613 dump_skb(AMAZON_AAL0_SDU,(char *)data);
621 * 2.Copy the data from the temporary memory to this buffer
622 * 3.Push the data to upper layer
623 * 4.Update the statistical data if necessary
624 * 5.Release the temporary data
627 void amazon_atm_swex_push(void * data)
634 if (!data){
635 AMAZON_TPE_EMSG("data is NULL\n");
638 qid = ((u8*)data)[AMAZON_AAL0_SDU];
639 status = ((u32*)data)[ATM_AAL0_SDU/4];
640 cell_header = (struct amazon_atm_cell_header *) data;
650 dump_skb(56,(char *)data);
651 //kfree(data); using g_oam_cell
655 amz_push_oam(data);
659 ret = amazon_handle_oam_cell(data,cell_header->bit.vpi,cell_header->bit.vci,status);
671 memcpy(skb_put(skb, AMAZON_AAL0_SDU), data, AMAZON_AAL0_SDU);
685 //kfree(data); using g_oam_cell
691 * data - Device ID for this interrupt
696 * It reads the cell data and sends it to the ATM stack.
698 void amazon_atm_swex_isr(int irq, void *data, struct pt_regs *regs)
724 swex_complete_task.data = cell;
741 * data - Device ID for this interrupt
748 void amazon_atm_swin_isr(int irq, void *data, struct pt_regs *regs)
761 * data - Device ID for this interrupt
766 void amazon_atm_swie_isr(int irq, void *data, struct pt_regs *regs)
777 amazon_atm_swin_isr(irq,data,regs);
786 amazon_atm_swex_isr(irq,data,regs);
794 * cell - Pointer to cell data
850 * data - Device ID for this interrupt
854 void amazon_atm_htu_isr(int irq, void *data, struct pt_regs *regs)
887 * data - Device ID for this interrupt
891 void amazon_atm_aal5_isr(int irq, void *data, struct pt_regs *regs)
917 * data - Device ID for this interrupt
924 void amazon_atm_cbm_isr(int irq, void *data, struct pt_regs *regs)
988 /* Brief: Process DMA rx data
992 * Description: DMA interrupt handerl with OoS support. It is called when there is some data in rx direction.
1044 //make data pointers consistent
1108 RCV_INT: rx data available
1138 dataptr: pointers to data buffer
1143 called by DMA module to release data buffer after DMA tx transaction
1176 opt: optional data to convey the skb pointer, which will be returned to me in interrupt handler,
1189 AMAZON_TPE_DMSG("alloc skb->data:%8p len:%u\n",skb->data,len);
1195 return skb->data;
1204 * size data buffer size
1595 * Parameters: atm_vcc - Pointer to VCC data structure
1642 * Parameters: atm_vcc - Pointer to VCC data structure
1643 * skb - Pointer to sk_buff structure, that contains the data
1698 * 1. make sure that the data is aligned to 4x32-bit boundary
1699 * 2. provide the inbound data (CPCS-UU and CPI, not used here)
1711 u32 * data=NULL;
1725 if ( ( ((u32)(skb->data)%16) !=AAL5S_INBOUND_HEADER)|| (skb_headroom(skb)<AAL5S_INBOUND_HEADER)){
1735 memcpy(skb_put(skb_tmp,skb->len), skb->data, skb->len);
1741 data = (u32 *)skb_push(skb,8);
1742 data[0] = __be32_to_cpu(vpi<<20|vci<<4|clp);
1743 data[1] = __be32_to_cpu(g_atm_dev.aal5.padding_byte<<8|qid);
1748 AMAZON_TPE_DMSG("AAL5S header 0 %8x\n", data[0]);
1749 AMAZON_TPE_DMSG("AAL5S header 0 %8x\n", data[1]);
1751 nwrite=dma_device_write( &g_dma_dev,skb->data,len,skb);
1780 * Parameters: atm_vcc - Pointer to VCC data structure
1781 * skb - Pointer to sk_buff structure, that contains the data
1810 err=amazon_atm_swin((qid+CBM_RX_OFFSET), skb->data);
1812 err=amazon_atm_swin(qid, skb->data);
2005 * Parameters: atm_vcc - Pointer to VCC data structure
2080 /* Brief: initialize internal data structure
2245 //1. set mask 2. write value to data transfer register 3. start the transfer
2344 /************initialize global data structure****************/
2349 swex_start_task.data = NULL;
2351 swex_complete_task.data = NULL;
2354 a5r_task.data = NULL;
2564 a link list of "struct oam_last_activity" data
2597 * skb data if no error
2689 int amazon_atm_read_procmem(char *buf, char **start, off_t offset,int count, int *eof, void *data)
2693 int type= (u32)data;//which module
3005 * It also allocates memory for the private device data structures