Lines Matching refs:t
2153 struct ch_qset_params t; in cxgb_siocdevprivate() local
2159 if (copy_from_user(&t, useraddr, sizeof(t))) in cxgb_siocdevprivate()
2161 if (t.cmd != CHELSIO_SET_QSET_PARAMS) in cxgb_siocdevprivate()
2163 if (t.qset_idx >= SGE_QSETS) in cxgb_siocdevprivate()
2165 if (!cxgb_in_range(t.intr_lat, 0, M_NEWTIMER) || in cxgb_siocdevprivate()
2166 !cxgb_in_range(t.cong_thres, 0, 255) || in cxgb_siocdevprivate()
2167 !cxgb_in_range(t.txq_size[0], MIN_TXQ_ENTRIES, in cxgb_siocdevprivate()
2169 !cxgb_in_range(t.txq_size[1], MIN_TXQ_ENTRIES, in cxgb_siocdevprivate()
2171 !cxgb_in_range(t.txq_size[2], MIN_CTRL_TXQ_ENTRIES, in cxgb_siocdevprivate()
2173 !cxgb_in_range(t.fl_size[0], MIN_FL_ENTRIES, in cxgb_siocdevprivate()
2175 !cxgb_in_range(t.fl_size[1], MIN_FL_ENTRIES, in cxgb_siocdevprivate()
2177 !cxgb_in_range(t.rspq_size, MIN_RSPQ_ENTRIES, in cxgb_siocdevprivate()
2182 (t.rspq_size >= 0 || t.fl_size[0] >= 0 || in cxgb_siocdevprivate()
2183 t.fl_size[1] >= 0 || t.txq_size[0] >= 0 || in cxgb_siocdevprivate()
2184 t.txq_size[1] >= 0 || t.txq_size[2] >= 0 || in cxgb_siocdevprivate()
2185 t.polling >= 0 || t.cong_thres >= 0)) in cxgb_siocdevprivate()
2197 if (t.qset_idx < q1) in cxgb_siocdevprivate()
2199 if (t.qset_idx > q1 + nqsets - 1) in cxgb_siocdevprivate()
2202 q = &adapter->params.sge.qset[t.qset_idx]; in cxgb_siocdevprivate()
2204 if (t.rspq_size >= 0) in cxgb_siocdevprivate()
2205 q->rspq_size = t.rspq_size; in cxgb_siocdevprivate()
2206 if (t.fl_size[0] >= 0) in cxgb_siocdevprivate()
2207 q->fl_size = t.fl_size[0]; in cxgb_siocdevprivate()
2208 if (t.fl_size[1] >= 0) in cxgb_siocdevprivate()
2209 q->jumbo_size = t.fl_size[1]; in cxgb_siocdevprivate()
2210 if (t.txq_size[0] >= 0) in cxgb_siocdevprivate()
2211 q->txq_size[0] = t.txq_size[0]; in cxgb_siocdevprivate()
2212 if (t.txq_size[1] >= 0) in cxgb_siocdevprivate()
2213 q->txq_size[1] = t.txq_size[1]; in cxgb_siocdevprivate()
2214 if (t.txq_size[2] >= 0) in cxgb_siocdevprivate()
2215 q->txq_size[2] = t.txq_size[2]; in cxgb_siocdevprivate()
2216 if (t.cong_thres >= 0) in cxgb_siocdevprivate()
2217 q->cong_thres = t.cong_thres; in cxgb_siocdevprivate()
2218 if (t.intr_lat >= 0) { in cxgb_siocdevprivate()
2220 &adapter->sge.qs[t.qset_idx]; in cxgb_siocdevprivate()
2222 q->coalesce_usecs = t.intr_lat; in cxgb_siocdevprivate()
2225 if (t.polling >= 0) { in cxgb_siocdevprivate()
2227 q->polling = t.polling; in cxgb_siocdevprivate()
2232 t.polling = 0; in cxgb_siocdevprivate()
2237 q->polling = t.polling; in cxgb_siocdevprivate()
2242 if (t.lro >= 0) { in cxgb_siocdevprivate()
2243 if (t.lro) in cxgb_siocdevprivate()
2254 struct ch_qset_params t; in cxgb_siocdevprivate() local
2259 if (copy_from_user(&t, useraddr, sizeof(t))) in cxgb_siocdevprivate()
2262 if (t.cmd != CHELSIO_GET_QSET_PARAMS) in cxgb_siocdevprivate()
2274 if (t.qset_idx >= nqsets) in cxgb_siocdevprivate()
2276 t.qset_idx = array_index_nospec(t.qset_idx, nqsets); in cxgb_siocdevprivate()
2278 q = &adapter->params.sge.qset[q1 + t.qset_idx]; in cxgb_siocdevprivate()
2279 t.rspq_size = q->rspq_size; in cxgb_siocdevprivate()
2280 t.txq_size[0] = q->txq_size[0]; in cxgb_siocdevprivate()
2281 t.txq_size[1] = q->txq_size[1]; in cxgb_siocdevprivate()
2282 t.txq_size[2] = q->txq_size[2]; in cxgb_siocdevprivate()
2283 t.fl_size[0] = q->fl_size; in cxgb_siocdevprivate()
2284 t.fl_size[1] = q->jumbo_size; in cxgb_siocdevprivate()
2285 t.polling = q->polling; in cxgb_siocdevprivate()
2286 t.lro = !!(dev->features & NETIF_F_GRO); in cxgb_siocdevprivate()
2287 t.intr_lat = q->coalesce_usecs; in cxgb_siocdevprivate()
2288 t.cong_thres = q->cong_thres; in cxgb_siocdevprivate()
2289 t.qnum = q1; in cxgb_siocdevprivate()
2292 t.vector = adapter->msix_info[q1 + t.qset_idx + 1].vec; in cxgb_siocdevprivate()
2294 t.vector = adapter->pdev->irq; in cxgb_siocdevprivate()
2296 if (copy_to_user(useraddr, &t, sizeof(t))) in cxgb_siocdevprivate()
2346 struct ch_mem_range t; in cxgb_siocdevprivate() local
2350 if (copy_from_user(&t, useraddr, sizeof(t))) in cxgb_siocdevprivate()
2352 if (t.cmd != CHELSIO_LOAD_FW) in cxgb_siocdevprivate()
2355 fw_data = memdup_user(useraddr + sizeof(t), t.len); in cxgb_siocdevprivate()
2359 ret = t3_load_fw(adapter, fw_data, t.len); in cxgb_siocdevprivate()
2445 struct ch_mem_range t; in cxgb_siocdevprivate() local
2455 if (copy_from_user(&t, useraddr, sizeof(t))) in cxgb_siocdevprivate()
2457 if (t.cmd != CHELSIO_GET_MEM) in cxgb_siocdevprivate()
2459 if ((t.addr & 7) || (t.len & 7)) in cxgb_siocdevprivate()
2461 if (t.mem_id == MEM_CM) in cxgb_siocdevprivate()
2463 else if (t.mem_id == MEM_PMRX) in cxgb_siocdevprivate()
2465 else if (t.mem_id == MEM_PMTX) in cxgb_siocdevprivate()
2475 t.version = 3 | (adapter->params.rev << 10); in cxgb_siocdevprivate()
2476 if (copy_to_user(useraddr, &t, sizeof(t))) in cxgb_siocdevprivate()
2483 useraddr += sizeof(t); /* advance to start of buffer */ in cxgb_siocdevprivate()
2484 while (t.len) { in cxgb_siocdevprivate()
2486 min_t(unsigned int, t.len, sizeof(buf)); in cxgb_siocdevprivate()
2489 t3_mc7_bd_read(mem, t.addr / 8, chunk / 8, in cxgb_siocdevprivate()
2496 t.addr += chunk; in cxgb_siocdevprivate()
2497 t.len -= chunk; in cxgb_siocdevprivate()
2502 struct ch_trace t; in cxgb_siocdevprivate() local
2509 if (copy_from_user(&t, useraddr, sizeof(t))) in cxgb_siocdevprivate()
2511 if (t.cmd != CHELSIO_SET_TRACE_FILTER) in cxgb_siocdevprivate()
2514 tp = (const struct trace_params *)&t.sip; in cxgb_siocdevprivate()
2515 if (t.config_tx) in cxgb_siocdevprivate()
2517 t.invert_match, in cxgb_siocdevprivate()
2518 t.trace_tx); in cxgb_siocdevprivate()
2519 if (t.config_rx) in cxgb_siocdevprivate()
2521 t.invert_match, in cxgb_siocdevprivate()
2522 t.trace_rx); in cxgb_siocdevprivate()