Lines Matching defs:in

7  * COPYING in the main directory of this source tree, or the
10 * Redistribution and use in source and binary forms, with or
18 * - Redistributions in binary form must reproduce the above
20 * disclaimer in the documentation and/or other materials
411 u32 *in;
429 in = kvzalloc(inlen, GFP_KERNEL);
430 if (!in)
433 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry);
449 MLX5_SET(create_mkey_in, in, translations_octword_actual_size, octwords);
459 klm = MLX5_ADDR_OF(create_mkey_in, in, klm_pas_mtt);
474 ksm = MLX5_ADDR_OF(create_mkey_in, in, klm_pas_mtt);
482 mtt = MLX5_ADDR_OF(create_mkey_in, in, klm_pas_mtt);
489 ksm = MLX5_ADDR_OF(create_mkey_in, in, klm_pas_mtt);
499 err = mlx5_core_create_mkey(mdev, umr_mkey, in, inlen);
501 kvfree(in);
511 u32 *in;
516 in = kvzalloc(inlen, GFP_KERNEL);
517 if (!in)
520 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry);
532 err = mlx5_core_create_mkey(mdev, umr_mkey, in, inlen);
534 kvfree(in);
1032 void *in;
1040 in = kvzalloc(inlen, GFP_KERNEL);
1041 if (!in)
1047 rqc = MLX5_ADDR_OF(create_rq_in, in, ctx);
1069 err = mlx5_core_create_rq(mdev, in, inlen, &rq->rqn);
1071 kvfree(in);
1080 void *in;
1086 in = kvzalloc(inlen, GFP_KERNEL);
1087 if (!in)
1093 rqc = MLX5_ADDR_OF(modify_rq_in, in, ctx);
1095 MLX5_SET(modify_rq_in, in, rq_state, curr_state);
1098 err = mlx5_core_modify_rq(mdev, rq->rqn, in);
1100 kvfree(in);
1147 void *in;
1153 in = kvzalloc(inlen, GFP_KERNEL);
1154 if (!in)
1157 rqc = MLX5_ADDR_OF(modify_rq_in, in, ctx);
1159 MLX5_SET(modify_rq_in, in, rq_state, MLX5_RQC_STATE_RDY);
1160 MLX5_SET64(modify_rq_in, in, modify_bitmask,
1165 err = mlx5_core_modify_rq(mdev, rq->rqn, in);
1167 kvfree(in);
1209 /* Release WQEs that are in missing state: they have been
1649 void *in;
1657 in = kvzalloc(inlen, GFP_KERNEL);
1658 if (!in)
1664 sqc = MLX5_ADDR_OF(create_sq_in, in, ctx);
1690 err = mlx5_core_create_sq(mdev, in, inlen, sqn);
1692 kvfree(in);
1701 void *in;
1707 in = kvzalloc(inlen, GFP_KERNEL);
1708 if (!in)
1711 sqc = MLX5_ADDR_OF(modify_sq_in, in, ctx);
1713 MLX5_SET(modify_sq_in, in, sq_state, p->curr_state);
1723 MLX5_SET64(modify_sq_in, in, modify_bitmask, bitmask);
1725 err = mlx5_core_modify_sq(mdev, sqn, in);
1727 kvfree(in);
2069 void *in;
2081 in = kvzalloc(inlen, GFP_KERNEL);
2082 if (!in)
2085 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context);
2090 (__be64 *)MLX5_ADDR_OF(create_cq_in, in, pas));
2099 err = mlx5_core_create_cq(mdev, mcq, in, inlen, out, sizeof(out));
2101 kvfree(in);
2318 /* rate is given in Mb/sec, HW config is in Kb/sec */
2321 /* Check whether rate in valid range, 0 is always valid */
2323 netdev_err(dev, "TX rate %u, is not in range\n", rate);
2502 * Freed in mlx5e_priv_arrays_free, not on channel closure.
2938 * one of nch and ntc is changed in this function. That means, the call
3045 * OK, including the ones in range real_num_tx_queues..num_tx_queues-1.
3278 /* May already be CLOSED in case a previous configuration operation
3773 /* update HW stats in background for next time */
3965 u32 in[MLX5_ST_SZ_DW(pcmr_reg)] = {};
3972 err = mlx5_query_ports_check(mdev, in, sizeof(in));
3976 supported = MLX5_GET(pcmr_reg, in, rx_ts_over_crc_cap);
3977 curr_state = MLX5_GET(pcmr_reg, in, rx_ts_over_crc);
3982 MLX5_SET(pcmr_reg, in, local_port, 1);
3983 MLX5_SET(pcmr_reg, in, rx_ts_over_crc, enable);
3985 return mlx5_set_ports_check(mdev, in, sizeof(in));
4154 netdev_warn(netdev, "Disabling hw_tls_rx, not supported in switchdev mode\n");
4158 netdev_warn(netdev, "Disabling hw_tls_tx, not supported in switchdev mode\n");
4162 netdev_warn(netdev, "Disabling ntuple, not supported in switchdev mode\n");
4166 netdev_warn(netdev, "Disabling HW_GRO, not supported in switchdev mode\n");
4170 netdev_warn(netdev, "Disabling HW_VLAN CTAG FILTERING, not supported in switchdev mode\n");
4200 netdev_warn(netdev, "Disabling LRO, not supported in legacy RQ\n");
4204 netdev_warn(netdev, "Disabling HW-GRO, not supported in legacy RQ\n");
4275 /* Validate XSK params and XDP MTU in advance */
4373 /* Always reset in linear mode - hw_mtu is used in data path.
4784 /* Take rtnl_lock to ensure no change in netdev->real_num_tx_queues
5018 /* The supported periods are organized in ascending order */
5078 /* Do not update netdev->features directly in here
5181 /* Tunneled LRO is not supported in the driver, and the same RQs are
5286 u32 in[MLX5_ST_SZ_DW(alloc_q_counter_in)] = {};
5291 MLX5_SET(alloc_q_counter_in, in, opcode, MLX5_CMD_OP_ALLOC_Q_COUNTER);
5294 err = mlx5_cmd_exec_inout(pos, alloc_q_counter, in, out);
5300 err = mlx5_cmd_exec_inout(mdev, alloc_q_counter, in, out);
5308 u32 in[MLX5_ST_SZ_DW(dealloc_q_counter_in)] = {};
5312 MLX5_SET(dealloc_q_counter_in, in, opcode,
5316 MLX5_SET(dealloc_q_counter_in, in, counter_set_id,
5318 mlx5_cmd_exec_in(pos, dealloc_q_counter, in);
5323 MLX5_SET(dealloc_q_counter_in, in, counter_set_id,
5325 mlx5_cmd_exec_in(priv->mdev, dealloc_q_counter, in);
5852 /* 1. Set the real number of queues in the kernel the first time.
5856 * rtnl_lock is required by netif_set_real_num_*_queues in case the
5858 * in the reload or resume flow).