Lines Matching refs:ret
4804 static int niu_compute_rbr_cfig_b(struct rx_ring_info *rp, u64 *ret) in niu_compute_rbr_cfig_b() argument
4808 *ret = 0; in niu_compute_rbr_cfig_b()
4880 *ret = val; in niu_compute_rbr_cfig_b()
6544 u64 csum_bits, l3off, ihl, ret; in niu_compute_tx_flags() local
6593 ret = (((pad_bytes / 2) << TXHDR_PAD_SHIFT) | in niu_compute_tx_flags()
6602 return ret; in niu_compute_tx_flags()
7158 int ret = 0; in niu_get_ethtool_tcam_entry() local
7172 ret = niu_class_to_ethflow(class, &fsp->flow_type); in niu_get_ethtool_tcam_entry()
7173 if (ret < 0) { in niu_get_ethtool_tcam_entry()
7204 ret = -EINVAL; in niu_get_ethtool_tcam_entry()
7210 ret = -EINVAL; in niu_get_ethtool_tcam_entry()
7214 if (ret < 0) in niu_get_ethtool_tcam_entry()
7226 return ret; in niu_get_ethtool_tcam_entry()
7237 int ret = 0; in niu_get_ethtool_tcam_all() local
7249 ret = -EMSGSIZE; in niu_get_ethtool_tcam_all()
7259 return ret; in niu_get_ethtool_tcam_all()
7266 int ret = 0; in niu_get_nfc() local
7270 ret = niu_get_hash_opts(np, cmd); in niu_get_nfc()
7279 ret = niu_get_ethtool_tcam_entry(np, cmd); in niu_get_nfc()
7282 ret = niu_get_ethtool_tcam_all(np, cmd, rule_locs); in niu_get_nfc()
7285 ret = -EINVAL; in niu_get_nfc()
7289 return ret; in niu_get_nfc()
7420 int err, ret; in niu_add_ethtool_tcam_entry() local
7422 ret = 0; in niu_add_ethtool_tcam_entry()
7466 ret = tcam_user_ip_class_set(np, class, 0, in niu_add_ethtool_tcam_entry()
7470 if (ret) in niu_add_ethtool_tcam_entry()
7473 ret = tcam_user_ip_class_enable(np, class, 1); in niu_add_ethtool_tcam_entry()
7474 if (ret) in niu_add_ethtool_tcam_entry()
7486 ret = -EINVAL; in niu_add_ethtool_tcam_entry()
7520 ret = -EINVAL; in niu_add_ethtool_tcam_entry()
7528 ret = -EINVAL; in niu_add_ethtool_tcam_entry()
7540 ret = -EINVAL; in niu_add_ethtool_tcam_entry()
7550 ret = -EINVAL; in niu_add_ethtool_tcam_entry()
7555 ret = -EINVAL; in niu_add_ethtool_tcam_entry()
7565 return ret; in niu_add_ethtool_tcam_entry()
7575 int ret = 0; in niu_del_ethtool_tcam_entry() local
7596 ret = tcam_user_ip_class_enable(np, in niu_del_ethtool_tcam_entry()
7599 if (ret) in niu_del_ethtool_tcam_entry()
7611 ret = -EINVAL; in niu_del_ethtool_tcam_entry()
7616 ret = tcam_flush(np, idx); in niu_del_ethtool_tcam_entry()
7617 if (ret) in niu_del_ethtool_tcam_entry()
7626 return ret; in niu_del_ethtool_tcam_entry()
7632 int ret = 0; in niu_set_nfc() local
7636 ret = niu_set_hash_opts(np, cmd); in niu_set_nfc()
7639 ret = niu_add_ethtool_tcam_entry(np, cmd); in niu_set_nfc()
7642 ret = niu_del_ethtool_tcam_entry(np, cmd->fs.location); in niu_set_nfc()
7645 ret = -EINVAL; in niu_set_nfc()
7649 return ret; in niu_set_nfc()
8204 u32 start = 0, end = ESPC_EEPROM_SIZE, ret; in niu_pci_vpd_offset() local
8208 ret = start; in niu_pci_vpd_offset()
8234 err = niu_pci_eeprom_read(np, ret + 2); in niu_pci_vpd_offset()
8238 start = ret + (err * 512); in niu_pci_vpd_offset()
8245 ret += err; in niu_pci_vpd_offset()
8247 err = niu_pci_eeprom_read(np, ret + 0); in niu_pci_vpd_offset()
8251 return ret; in niu_pci_vpd_offset()
9574 void *ret; in niu_pci_alloc_coherent() local
9576 ret = dma_alloc_coherent(dev, size, &dh, flag); in niu_pci_alloc_coherent()
9577 if (ret) in niu_pci_alloc_coherent()
9579 return ret; in niu_pci_alloc_coherent()