Displaying 8 results from an estimated 8 matches for "new_gen".
2019 Nov 08
0
[PATCH 1/2] IFC hardware operation layer
...ase: %p\n, isr cfg: %p, device cfg: %p,\
> + multiplier: %u\n",
> + hw->common_cfg, hw->notify_base, hw->isr,
> + hw->net_cfg, hw->notify_off_multiplier);
> +
> + return 0;
> +}
> +
> +u8 ifcvf_get_status(struct ifcvf_hw *hw)
> +{
> + u8 old_gen, new_gen, status;
> +
> + do {
> + old_gen = ioread8(&hw->common_cfg->config_generation);
> + status = ioread8(&hw->common_cfg->device_status);
> + new_gen = ioread8(&hw->common_cfg->config_generation);
> + } while (old_gen != new_gen);
> +
> + return...
2019 Nov 05
1
[PATCH 1/2] IFC hardware operation layer
...ase: %p\n, isr cfg: %p, device cfg: %p,\
> + multiplier: %u\n",
> + hw->common_cfg, hw->notify_base, hw->isr,
> + hw->net_cfg, hw->notify_off_multiplier);
> +
> + return 0;
> +}
> +
> +u8 ifcvf_get_status(struct ifcvf_hw *hw)
> +{
> + u8 old_gen, new_gen, status;
> +
> + do {
> + old_gen = ioread8(&hw->common_cfg->config_generation);
> + status = ioread8(&hw->common_cfg->device_status);
> + new_gen = ioread8(&hw->common_cfg->config_generation);
> + } while (old_gen != new_gen);
> +
> + return...
2019 Oct 22
0
[RFC 1/2] vhost: IFC VF hardware operation layer
..., 2019 at 09:10:40AM +0800, Zhu Lingshan wrote:
> ...
>
>>>> +static void ifcvf_read_dev_config(struct ifcvf_hw *hw, u64 offset,
>>>> + void *dst, int length)
>>>> +{
>>>> + int i;
>>>> + u8 *p;
>>>> + u8 old_gen, new_gen;
>>>> +
>>>> + do {
>>>> + old_gen = ioread8(&hw->common_cfg->config_generation);
>>>> +
>>>> + p = dst;
>>>> + for (i = 0; i < length; i++)
>>>> + *p++ = ioread8((u8 *)hw->dev_cfg + offset + i)...
2019 Oct 23
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...>>>
>>>>>> +static void ifcvf_read_dev_config(struct ifcvf_hw *hw, u64 offset,
>>>>>> + void *dst, int length)
>>>>>> +{
>>>>>> + int i;
>>>>>> + u8 *p;
>>>>>> + u8 old_gen, new_gen;
>>>>>> +
>>>>>> + do {
>>>>>> + old_gen = ioread8(&hw->common_cfg->config_generation);
>>>>>> +
>>>>>> + p = dst;
>>>>>> + for (i = 0; i < length; i++)
>>>>>&g...
2019 Nov 05
0
[PATCH 1/2] IFC hardware operation layer
...ase: %p\n, isr cfg: %p, device cfg: %p,\
> + multiplier: %u\n",
> + hw->common_cfg, hw->notify_base, hw->isr,
> + hw->net_cfg, hw->notify_off_multiplier);
> +
> + return 0;
> +}
> +
> +u8 ifcvf_get_status(struct ifcvf_hw *hw)
> +{
> + u8 old_gen, new_gen, status;
> +
> + do {
> + old_gen = ioread8(&hw->common_cfg->config_generation);
> + status = ioread8(&hw->common_cfg->device_status);
> + new_gen = ioread8(&hw->common_cfg->config_generation);
> + } while (old_gen != new_gen);
> +
> + return...
2019 Nov 06
0
[PATCH 1/2] IFC hardware operation layer
...ase: %p\n, isr cfg: %p, device cfg: %p,\
> + multiplier: %u\n",
> + hw->common_cfg, hw->notify_base, hw->isr,
> + hw->net_cfg, hw->notify_off_multiplier);
> +
> + return 0;
> +}
> +
> +u8 ifcvf_get_status(struct ifcvf_hw *hw)
> +{
> + u8 old_gen, new_gen, status;
> +
> + do {
> + old_gen = ioread8(&hw->common_cfg->config_generation);
> + status = ioread8(&hw->common_cfg->device_status);
> + new_gen = ioread8(&hw->common_cfg->config_generation);
config generation should be only used for config access...
2019 Oct 16
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...with_feature(struct ifcvf_hw *hw, u64 bit)
> +{
> + return (hw->req_features & (1ULL << bit)) != 0;
> +}
> +
> +static void ifcvf_read_dev_config(struct ifcvf_hw *hw, u64 offset,
> + void *dst, int length)
> +{
> + int i;
> + u8 *p;
> + u8 old_gen, new_gen;
> +
> + do {
> + old_gen = ioread8(&hw->common_cfg->config_generation);
> +
> + p = dst;
> + for (i = 0; i < length; i++)
> + *p++ = ioread8((u8 *)hw->dev_cfg + offset + i);
> +
> + new_gen = ioread8(&hw->common_cfg->config_generation);
&g...
2019 Oct 21
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...atures & (1ULL << bit)) != 0;
>>> +}
>>> +
>>> +static void ifcvf_read_dev_config(struct ifcvf_hw *hw, u64 offset,
>>> +?????????????? void *dst, int length)
>>> +{
>>> +??? int i;
>>> +??? u8 *p;
>>> +??? u8 old_gen, new_gen;
>>> +
>>> +??? do {
>>> +??????? old_gen = ioread8(&hw->common_cfg->config_generation);
>>> +
>>> +??????? p = dst;
>>> +??????? for (i = 0; i < length; i++)
>>> +??????????? *p++ = ioread8((u8 *)hw->dev_cfg + offset +...