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

Lines Matching refs:temp

1046 	int i, j, temp;
1096 for (temp = dma_dev->tx_burst_len; temp > 2; temp /= 2) {
1103 for (temp = dma_dev->rx_burst_len; temp > 2; temp /= 2) {
1110 temp = dma_dev->logic_rx_chan_base + i;
1111 g_log_chan[temp].dma_dev = dma_dev;
1112 g_log_chan[temp].weight = dma_dev->rx_chan[i].weight;
1113 g_log_chan[temp].default_weight = dma_dev->rx_chan[i].weight;
1114 g_log_chan[temp].current_desc = 0;
1115 g_log_chan[temp].desc_ofst = DEFAULT_OFFSET;
1116 g_log_chan[temp].desc_len = dma_dev->rx_chan[i].desc_num;
1117 g_log_chan[temp].offset_from_base = temp * DEFAULT_OFFSET;
1118 g_log_chan[temp].packet_size = dma_dev->rx_chan[i].packet_size;
1120 AMAZON_DMA_REG32(AMAZON_DMA_CH0_DES_LEN + temp * AMAZON_DMA_CH_STEP) = dma_dev->rx_chan[i].desc_num;
1122 if (temp == 4 || temp == 5) {
1123 AMAZON_DMA_REG32(AMAZON_DMA_CH0_MSK + temp * AMAZON_DMA_CH_STEP) = 0x32;
1125 AMAZON_DMA_REG32(AMAZON_DMA_CH0_MSK + temp * AMAZON_DMA_CH_STEP) = 0x36;
1127 strcpy(g_log_chan[temp].device_name, dma_dev->device_name);
1128 g_log_chan[temp].burst_len = dma_dev->rx_burst_len;
1129 g_log_chan[temp].control = dma_dev->rx_chan[i].control;
1134 g_log_chan[temp].buffer_alloc = dma_dev->buffer_alloc;
1136 g_log_chan[temp].buffer_alloc = common_buffer_alloc;
1139 g_log_chan[temp].buffer_free = dma_dev->buffer_free;
1141 g_log_chan[temp].buffer_free = common_buffer_free;
1144 g_log_chan[temp].intr_handler = dma_dev->intr_handler;
1146 g_log_chan[temp].intr_handler = NULL;
1148 for (j = 0; j < g_log_chan[temp].desc_len; j++) {
1149 rx_desc_p = (struct rx_desc *) (g_desc_list + g_log_chan[temp].offset_from_base + j);
1151 rx_desc_p->status.field.data_length = g_log_chan[temp].packet_size;
1152 buffer = (u8 *) g_log_chan[temp].buffer_alloc(g_log_chan[temp].packet_size, &byte_offset, &p);
1157 g_log_chan[temp].opt[j] = p;
1162 if (g_log_chan[temp].control)
1163 open_channel(temp);
1165 close_channel(temp);
1169 temp = dma_dev->logic_tx_chan_base + i;
1170 g_log_chan[temp].dma_dev = dma_dev;
1171 g_log_chan[temp].weight = dma_dev->tx_chan[i].weight;
1172 g_log_chan[temp].default_weight = dma_dev->tx_chan[i].weight;
1173 g_log_chan[temp].current_desc = 0;
1174 g_log_chan[temp].desc_ofst = DEFAULT_OFFSET;
1175 g_log_chan[temp].desc_len = dma_dev->tx_chan[i].desc_num;
1176 g_log_chan[temp].offset_from_base = temp * DEFAULT_OFFSET;
1177 g_log_chan[temp].packet_size = dma_dev->tx_chan[i].packet_size;
1179 AMAZON_DMA_REG32(AMAZON_DMA_CH0_DES_LEN + temp * AMAZON_DMA_CH_STEP) = dma_dev->tx_chan[i].desc_num;
1182 AMAZON_DMA_REG32(AMAZON_DMA_CH0_MSK + temp * AMAZON_DMA_CH_STEP) = 0x3e;
1184 AMAZON_DMA_REG32(AMAZON_DMA_CH0_MSK + temp * AMAZON_DMA_CH_STEP) = 0x36;
1187 strcpy(g_log_chan[temp].device_name, dma_dev->device_name);
1188 g_log_chan[temp].burst_len = dma_dev->tx_burst_len;
1189 g_log_chan[temp].control = dma_dev->tx_chan[i].control;
1192 g_log_chan[temp].buffer_alloc = dma_dev->buffer_alloc;
1194 g_log_chan[temp].buffer_alloc = common_buffer_alloc;
1197 g_log_chan[temp].buffer_free = dma_dev->buffer_free;
1199 g_log_chan[temp].buffer_free = common_buffer_free;
1202 g_log_chan[temp].intr_handler = dma_dev->intr_handler;
1204 g_log_chan[temp].intr_handler = NULL;
1206 for (j = 0; j < g_log_chan[temp].desc_len; j++) {
1210 g_log_chan[temp].offset_from_base + j);
1213 g_log_chan[temp].packet_size;
1219 if (!g_log_chan[temp].control) {
1220 close_channel(temp);
1249 int i, j, temp;
1254 temp = dma_dev->logic_rx_chan_base + i;
1255 close_channel(temp);
1256 for (j = 0; j < g_log_chan[temp].desc_len; j++) {
1259 g_log_chan[temp].offset_from_base + j);
1261 g_log_chan[temp].buffer_free(buffer, g_log_chan[temp].opt[j]);
1265 temp = dma_dev->logic_tx_chan_base + i;
1266 close_channel(temp);
1302 int i, temp;
1304 temp = dma_dev->logic_rx_chan_base + i;
1305 g_log_chan[temp].control = dma_dev->rx_chan[i].control;
1307 if (g_log_chan[temp].control)
1308 open_channel(temp);
1310 close_channel(temp);
1317 int i, temp;
1319 temp = dma_dev->logic_tx_chan_base + i;
1320 g_log_chan[temp].control = dma_dev->tx_chan[i].control;
1321 if (g_log_chan[temp].control) {
1323 // open_channel(temp);
1325 close_channel(temp);