| /linux/drivers/net/can/dev/ |
| H A D | rx-offload.c | 24 can_rx_offload_le(struct can_rx_offload *offload, in can_rx_offload_le() argument 27 if (offload->inc) in can_rx_offload_le() 34 can_rx_offload_inc(struct can_rx_offload *offload, unsigned int *val) in can_rx_offload_inc() argument 36 if (offload->inc) in can_rx_offload_inc() 44 struct can_rx_offload *offload = container_of(napi, in can_rx_offload_napi_poll() local 47 struct net_device *dev = offload->dev; in can_rx_offload_napi_poll() 53 (skb = skb_dequeue(&offload->skb_queue))) { in can_rx_offload_napi_poll() 69 if (!skb_queue_empty(&offload->skb_queue)) in can_rx_offload_napi_poll() 70 napi_schedule(&offload->napi); in can_rx_offload_napi_poll() 141 can_rx_offload_offload_one(struct can_rx_offload *offload, unsigned int n) in can_rx_offload_offload_one() argument [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-offload.c | 36 struct spi_offload *offload; member 68 struct spi_offload *offload; in devm_spi_offload_alloc() local 71 offload = devm_kzalloc(dev, sizeof(*offload), GFP_KERNEL); in devm_spi_offload_alloc() 72 if (!offload) in devm_spi_offload_alloc() 79 offload->provider_dev = dev; in devm_spi_offload_alloc() 80 offload->priv = priv; in devm_spi_offload_alloc() 82 return offload; in devm_spi_offload_alloc() 90 resource->controller->put_offload(resource->offload); in spi_offload_put() 111 struct spi_offload *offload; in devm_spi_offload_get() local 124 offload = spi->controller->get_offload(spi, config); in devm_spi_offload_get() [all …]
|
| H A D | spi-axi-spi-engine.c | 163 struct spi_offload *offload; member 277 if (msg->offload && xfer->rx_buf) in spi_engine_precompile_message() 293 if (msg->offload) { in spi_engine_precompile_message() 294 struct spi_engine_offload *priv = msg->offload->priv; in spi_engine_precompile_message() 328 if (msg->offload) { in spi_engine_compile_message() 329 priv = msg->offload->priv; in spi_engine_compile_message() 618 struct spi_engine_offload *priv = msg->offload->priv; in spi_engine_offload_prepare() 691 static void spi_engine_offload_unprepare(struct spi_offload *offload) in spi_engine_offload_unprepare() argument 693 struct spi_engine_offload *priv = offload->priv; in spi_engine_offload_unprepare() 728 if (!msg->offload || spi_engine->offload_requires_sync) in spi_engine_optimize_message() [all …]
|
| /linux/kernel/bpf/ |
| H A D | offload.c | 111 struct bpf_prog_offload *offload = prog->aux->offload; in __bpf_prog_offload_destroy() local 113 if (offload->dev_state) in __bpf_prog_offload_destroy() 114 offload->offdev->ops->destroy(prog); in __bpf_prog_offload_destroy() 116 list_del_init(&offload->offloads); in __bpf_prog_offload_destroy() 117 kfree(offload); in __bpf_prog_offload_destroy() 118 prog->aux->offload = NULL; in __bpf_prog_offload_destroy() 151 struct bpf_prog_offload *offload, *ptmp; in __bpf_offload_dev_netdev_unregister() local 170 list_for_each_entry(offload, &ondev->progs, offloads) in __bpf_offload_dev_netdev_unregister() 171 offload->netdev = altdev->netdev; in __bpf_offload_dev_netdev_unregister() 178 list_for_each_entry_safe(offload, ptmp, &ondev->progs, offloads) in __bpf_offload_dev_netdev_unregister() [all …]
|
| /linux/include/linux/can/ |
| H A D | rx-offload.h | 18 struct sk_buff *(*mailbox_read)(struct can_rx_offload *offload, 35 struct can_rx_offload *offload); 37 struct can_rx_offload *offload, 40 struct can_rx_offload *offload, 42 int can_rx_offload_irq_offload_timestamp(struct can_rx_offload *offload, 44 int can_rx_offload_irq_offload_fifo(struct can_rx_offload *offload); 45 int can_rx_offload_queue_timestamp(struct can_rx_offload *offload, 47 unsigned int can_rx_offload_get_echo_skb_queue_timestamp(struct can_rx_offload *offload, 50 int can_rx_offload_queue_tail(struct can_rx_offload *offload, 52 unsigned int can_rx_offload_get_echo_skb_queue_tail(struct can_rx_offload *offload, [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/ |
| H A D | dc_helper.c | 43 struct dc_reg_helper_state *offload, in submit_dmub_read_modify_write() argument 46 struct dmub_rb_cmd_read_modify_write *cmd_buf = &offload->cmd_data.read_modify_write; in submit_dmub_read_modify_write() 48 offload->should_burst_write = in submit_dmub_read_modify_write() 49 (offload->same_addr_count == (DMUB_READ_MODIFY_WRITE_SEQ__MAX - 1)); in submit_dmub_read_modify_write() 51 sizeof(struct dmub_cmd_read_modify_write_sequence) * offload->reg_seq_count; in submit_dmub_read_modify_write() 53 dc_wake_and_execute_dmub_cmd(ctx, &offload->cmd_data, DM_DMUB_WAIT_TYPE_NO_WAIT); in submit_dmub_read_modify_write() 57 offload->reg_seq_count = 0; in submit_dmub_read_modify_write() 58 offload->same_addr_count = 0; in submit_dmub_read_modify_write() 62 struct dc_reg_helper_state *offload, in submit_dmub_burst_write() argument 65 struct dmub_rb_cmd_burst_write *cmd_buf = &offload->cmd_data.burst_write; in submit_dmub_burst_write() [all …]
|
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| H A D | macsec-offload.sh | 16 if ! ip link add link $NSIM_NETDEV $MACSEC_NETDEV type macsec offload mac 2>/dev/null; then 26 ip link add link $NSIM_NETDEV "${MACSEC_NETDEV}" type macsec port 4 offload mac 29 …dd link $NSIM_NETDEV "${MACSEC_NETDEV}2" type macsec address "aa:bb:cc:dd:ee:ff" port 5 offload mac 32 ip link add link $NSIM_NETDEV "${MACSEC_NETDEV}3" type macsec sci abbacdde01020304 offload mac 35 ip link add link $NSIM_NETDEV "${MACSEC_NETDEV}4" type macsec port 8 offload mac 2> /dev/null 52 ip link set "${MACSEC_NETDEV}" type macsec offload off 2> /dev/null 55 ip macsec offload "${MACSEC_NETDEV}" off 2> /dev/null 59 ip link set "${MACSEC_NETDEV}2" type macsec offload off 62 ip link set "${MACSEC_NETDEV}2" type macsec offload mac 66 ip macsec offload "${MACSEC_NETDEV}2" off [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_flow_table_offload.c | 733 const struct flow_offload_work *offload, in nf_flow_offload_rule_alloc() argument 736 const struct nf_flowtable *flowtable = offload->flowtable; in nf_flow_offload_rule_alloc() 738 struct flow_offload *flow = offload->flow; in nf_flow_offload_rule_alloc() 802 static int nf_flow_offload_alloc(const struct flow_offload_work *offload, in nf_flow_offload_alloc() argument 805 struct net *net = read_pnet(&offload->flowtable->net); in nf_flow_offload_alloc() 807 flow_rule[0] = nf_flow_offload_rule_alloc(net, offload, in nf_flow_offload_alloc() 812 flow_rule[1] = nf_flow_offload_rule_alloc(net, offload, in nf_flow_offload_alloc() 871 static int flow_offload_tuple_add(struct flow_offload_work *offload, in flow_offload_tuple_add() argument 875 return nf_flow_offload_tuple(offload->flowtable, offload->flow, in flow_offload_tuple_add() 877 offload->flowtable->priority, in flow_offload_tuple_add() [all …]
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_tas.c | 31 const struct tc_taprio_qopt_offload *offload; in sja1105_tas_set_runtime_params() local 33 offload = tas_data->offload[port]; in sja1105_tas_set_runtime_params() 34 if (!offload) in sja1105_tas_set_runtime_params() 39 if (max_cycle_time < offload->cycle_time) in sja1105_tas_set_runtime_params() 40 max_cycle_time = offload->cycle_time; in sja1105_tas_set_runtime_params() 41 if (latest_base_time < offload->base_time) in sja1105_tas_set_runtime_params() 42 latest_base_time = offload->base_time; in sja1105_tas_set_runtime_params() 43 if (earliest_base_time > offload->base_time) { in sja1105_tas_set_runtime_params() 44 earliest_base_time = offload->base_time; in sja1105_tas_set_runtime_params() 45 its_cycle_time = offload->cycle_time; in sja1105_tas_set_runtime_params() [all …]
|
| /linux/Documentation/networking/ |
| H A D | xfrm_device.rst | 18 Luckily, there are NICs that offer a hardware based IPsec offload which 21 hardware offload. 23 Right now, there are two types of hardware offload that kernel supports. 24 * IPsec crypto offload: 27 * IPsec packet offload: 34 Userland access to the offload is typically through a system such as 37 like this for crypto offload: 43 offload dev eth4 dir in 45 and for packet offload 51 offload packet dev eth4 dir in [all …]
|
| H A D | tls-offload.rst | 4 Kernel TLS offload 10 Linux kernel provides TLS connection offload infrastructure. Once a TCP 24 * Packet-based NIC offload mode (``TLS_HW``) - the NIC handles crypto 28 (``ethtool`` flags ``tls-hw-tx-offload`` and ``tls-hw-rx-offload``). 29 * Full TCP NIC offload mode (``TLS_HW_RECORD``) - mode of operation where 36 offload opt-in or opt-out on per-connection basis is not currently supported. 48 for crypto offload based on the socket the packet is attached to, 63 .. kernel-figure:: tls-offload-layers.svg 64 :alt: TLS offload layers 82 network device is offload-capable and attempts the offload. In case offload [all …]
|
| H A D | segmentation-offloads.rst | 12 to take advantage of segmentation offload capabilities of various NICs. 34 offload. For this reason TSO is normally disabled if the Tx checksum 35 offload for a given device is disabled. 37 In order to support TCP segmentation offload it is necessary to populate 64 UDP fragmentation offload allows a device to fragment an oversized UDP 66 fragmentation offload are the same as TSO. However the IPv4 ID for 79 for such instances an additional set of segmentation offload types were 111 header has requested a remote checksum offload. In this case the inner 119 Generic segmentation offload is a pure software offload that is meant to 125 Before enabling any hardware segmentation offload a corresponding software [all …]
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | wow.c | 609 struct wmi_arp_ns_offload_arg *offload) in ath12k_wow_generate_ns_mc_addr() argument 613 for (i = 0; i < offload->ipv6_count; i++) { in ath12k_wow_generate_ns_mc_addr() 614 offload->self_ipv6_addr[i][0] = 0xff; in ath12k_wow_generate_ns_mc_addr() 615 offload->self_ipv6_addr[i][1] = 0x02; in ath12k_wow_generate_ns_mc_addr() 616 offload->self_ipv6_addr[i][11] = 0x01; in ath12k_wow_generate_ns_mc_addr() 617 offload->self_ipv6_addr[i][12] = 0xff; in ath12k_wow_generate_ns_mc_addr() 618 offload->self_ipv6_addr[i][13] = in ath12k_wow_generate_ns_mc_addr() 619 offload->ipv6_addr[i][13]; in ath12k_wow_generate_ns_mc_addr() 620 offload->self_ipv6_addr[i][14] = in ath12k_wow_generate_ns_mc_addr() 621 offload->ipv6_addr[i][14]; in ath12k_wow_generate_ns_mc_addr() [all …]
|
| /linux/include/linux/spi/offload/ |
| H A D | consumer.h | 24 struct spi_offload *offload, 28 int spi_offload_trigger_enable(struct spi_offload *offload, 31 void spi_offload_trigger_disable(struct spi_offload *offload, 35 struct spi_offload *offload); 37 struct spi_offload *offload);
|
| H A D | types.h | 80 int (*trigger_enable)(struct spi_offload *offload); 85 void (*trigger_disable)(struct spi_offload *offload); 91 struct dma_chan *(*tx_stream_request_dma_chan)(struct spi_offload *offload); 97 struct dma_chan *(*rx_stream_request_dma_chan)(struct spi_offload *offload);
|
| /linux/drivers/net/ethernet/netronome/ |
| H A D | Kconfig | 33 bool "NFP4000/NFP6000 TC Flower offload support" 39 Enable driver support for TC Flower offload on NFP4000 and NFP6000. 40 Say Y, if you are planning to make use of TC Flower offload 42 TC Flower offload requires specific FW to work. 58 bool "NFP IPsec crypto offload support" 63 Enable driver support IPsec crypto offload on NFP NIC. 65 offload. NOTE that IPsec crypto offload on NFP NIC
|
| /linux/drivers/net/can/usb/ |
| H A D | nct6694_canfd.c | 135 struct can_rx_offload offload; member 146 static inline struct nct6694_canfd_priv *rx_offload_to_priv(struct can_rx_offload *offload) in rx_offload_to_priv() argument 148 return container_of(offload, struct nct6694_canfd_priv, offload); in rx_offload_to_priv() 175 static void nct6694_canfd_rx_offload(struct can_rx_offload *offload, in nct6694_canfd_rx_offload() argument 178 struct nct6694_canfd_priv *priv = rx_offload_to_priv(offload); in nct6694_canfd_rx_offload() 181 ret = can_rx_offload_queue_tail(offload, skb); in nct6694_canfd_rx_offload() 205 nct6694_canfd_rx_offload(&priv->offload, skb); in nct6694_canfd_handle_lost_msg() 265 nct6694_canfd_rx_offload(&priv->offload, skb); in nct6694_canfd_handle_rx() 308 nct6694_canfd_rx_offload(&priv->offload, skb); in nct6694_canfd_handle_state_change() 366 nct6694_canfd_rx_offload(&priv->offload, skb); in nct6694_canfd_handle_bus_err() [all …]
|
| /linux/drivers/net/ethernet/huawei/hinic3/ |
| H A D | hinic3_tx.c | 378 u32 offload = 0; in hinic3_tx_offload() local 388 offload = HINIC3_TX_OFFLOAD_INVALID; in hinic3_tx_offload() 389 return offload; in hinic3_tx_offload() 391 offload |= HINIC3_TX_OFFLOAD_TSO; in hinic3_tx_offload() 395 offload |= HINIC3_TX_OFFLOAD_CSUM; in hinic3_tx_offload() 403 offload |= HINIC3_TX_OFFLOAD_VLAN; in hinic3_tx_offload() 408 offload = HINIC3_TX_OFFLOAD_INVALID; in hinic3_tx_offload() 409 return offload; in hinic3_tx_offload() 412 return offload; in hinic3_tx_offload() 428 u32 offload, u16 num_sge, u16 *curr_pi) in hinic3_set_wqe_combo() argument [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | ad7606_spi.c | 29 struct spi_offload *offload; member 175 bus_data->offload_msg.offload = bus_data->offload; in ad7606_spi_offload_buffer_postenable() 183 ret = spi_offload_trigger_enable(bus_data->offload, in ad7606_spi_offload_buffer_postenable() 196 spi_offload_trigger_disable(bus_data->offload, in ad7606_spi_offload_buffer_postenable() 215 spi_offload_trigger_disable(bus_data->offload, in ad7606_spi_offload_buffer_predisable() 292 bus_data->offload = devm_spi_offload_get(dev, spi, in ad7606_spi_offload_probe() 294 ret = PTR_ERR_OR_ZERO(bus_data->offload); in ad7606_spi_offload_probe() 307 bus_data->offload, SPI_OFFLOAD_TRIGGER_DATA_READY); in ad7606_spi_offload_probe() 314 bus_data->offload); in ad7606_spi_offload_probe()
|
| /linux/Documentation/sound/soc/ |
| H A D | usb.rst | 77 The struct snd_soc_usb_device is created by the USB sound offload driver. 109 to be called by the USB offload driver residing in USB SND. 122 audio device removal. This is intended to be called by the USB offload 160 - ``dev``: USB device to look up offload path mapping 163 - ``direction``: direction to fetch offload routing information 165 - ``route``: mapping of sound card and pcm indexes for the offload path. This is 172 offload for the device. ``route`` may be a pointer to a kcontrol value output array, 264 parameters or settings to be accessed by the USB offload driver that 301 | --> Propagate connect event to USB offload driver in USB SND 320 In the case where the USB offload driver is unbound, while USB SND is ready, [all …]
|
| /linux/drivers/net/can/ |
| H A D | ti_hecc.c | 179 struct can_rx_offload offload; member 523 struct ti_hecc_priv *rx_offload_to_priv(struct can_rx_offload *offload) in rx_offload_to_priv() argument 525 return container_of(offload, struct ti_hecc_priv, offload); in rx_offload_to_priv() 528 static struct sk_buff *ti_hecc_mailbox_read(struct can_rx_offload *offload, in ti_hecc_mailbox_read() argument 532 struct ti_hecc_priv *priv = rx_offload_to_priv(offload); in ti_hecc_mailbox_read() 544 skb = alloc_can_skb(offload->dev, &cf); in ti_hecc_mailbox_read() 626 err = can_rx_offload_queue_timestamp(&priv->offload, skb, in ti_hecc_error() 662 err = can_rx_offload_queue_timestamp(&priv->offload, skb, timestamp); in ti_hecc_change_state() 750 can_rx_offload_get_echo_skb_queue_timestamp(&priv->offload, in ti_hecc_interrupt() 765 can_rx_offload_irq_offload_timestamp(&priv->offload, in ti_hecc_interrupt() [all …]
|
| H A D | at91_can.c | 153 struct can_rx_offload offload; member 168 static inline struct at91_priv *rx_offload_to_priv(struct can_rx_offload *offload) in rx_offload_to_priv() argument 170 return container_of(offload, struct at91_priv, offload); in rx_offload_to_priv() 571 err = can_rx_offload_queue_timestamp(&priv->offload, skb, timestamp); in at91_rx_overflow_err() 585 static struct sk_buff *at91_mailbox_read(struct can_rx_offload *offload, in at91_mailbox_read() argument 589 const struct at91_priv *priv = rx_offload_to_priv(offload); in at91_mailbox_read() 603 skb = alloc_can_skb(offload->dev, &cf); in at91_mailbox_read() 632 at91_rx_overflow_err(offload->dev); in at91_mailbox_read() 748 err = can_rx_offload_queue_timestamp(&priv->offload, skb, timestamp); in at91_irq_err_line() 813 err = can_rx_offload_queue_timestamp(&priv->offload, skb, timestamp); in at91_irq_err_frame() [all …]
|
| H A D | bxcan.c | 167 struct can_rx_offload offload; member 356 struct bxcan_priv *rx_offload_to_priv(struct can_rx_offload *offload) in rx_offload_to_priv() argument 358 return container_of(offload, struct bxcan_priv, offload); in rx_offload_to_priv() 361 static struct sk_buff *bxcan_mailbox_read(struct can_rx_offload *offload, in bxcan_mailbox_read() argument 365 struct bxcan_priv *priv = rx_offload_to_priv(offload); in bxcan_mailbox_read() 381 skb = alloc_can_skb(offload->dev, &cf); in bxcan_mailbox_read() 423 can_rx_offload_irq_offload_fifo(&priv->offload); in bxcan_rx_isr() 424 can_rx_offload_irq_finish(&priv->offload); in bxcan_rx_isr() 510 err = can_rx_offload_queue_timestamp(&priv->offload, skb, in bxcan_handle_state_change() 595 err = can_rx_offload_queue_timestamp(&priv->offload, skb, in bxcan_handle_bus_err() [all …]
|
| /linux/net/sched/ |
| H A D | sch_taprio.c | 116 struct tc_taprio_qopt_offload offload; member 1378 __offload = kzalloc(struct_size(__offload, offload.entries, num_entries), in taprio_offload_alloc() 1385 return &__offload->offload; in taprio_offload_alloc() 1389 *offload) in taprio_offload_get() 1393 __offload = container_of(offload, struct __tc_taprio_qopt_offload, in taprio_offload_get() 1394 offload); in taprio_offload_get() 1398 return offload; in taprio_offload_get() 1402 void taprio_offload_free(struct tc_taprio_qopt_offload *offload) in taprio_offload_free() argument 1406 __offload = container_of(offload, struct __tc_taprio_qopt_offload, in taprio_offload_free() 1407 offload); in taprio_offload_free() [all …]
|
| /linux/Documentation/iio/ |
| H A D | ad7606.rst | 29 SPI offload wiring 31 When used with a SPI offload, the supported wiring configuration is: 51 to the SPI offload. The SPI offload will have ``trigger-sources`` property 55 .. seealso:: `SPI offload support`_ 155 SPI offload support 159 `AXI SPI Engine`_ to provide SPI offload support. 163 When SPI offload is being used, some attributes will be different. 168 * Buffer data format may be different compared to when offload is not used,
|