Searched refs:used (Results 226 - 250 of 636) sorted by path

1234567891011>>

/linux-master/drivers/mtd/ubi/
H A Dfastmap.c13 * init_seen - allocate memory for used for debugging.
167 * @used_ebs: number of used EBS
552 struct list_head used, free; local
566 INIT_LIST_HEAD(&used);
649 /* read EC values from used list */
656 ret = add_aeb(ai, &used, be32_to_cpu(fmec->pnum),
669 ret = add_aeb(ai, &used, be32_to_cpu(fmec->pnum),
741 list_for_each_entry(tmp_aeb, &used, u.list) {
749 ubi_err(ubi, "PEB %i is in EBA but not in used list", pnum);
779 list_for_each_entry_safe(tmp_aeb, _tmp_aeb, &used,
[all...]
H A Dubi.h36 /* UBI name used for character devices, sysfs, etc */
149 * struct ubi_vid_io_buf - VID buffer used to read/write VID info to/from the
161 * @u.rb: link in the corresponding (free/used) RB-tree
166 * This data structure is used in the WL sub-system. Each physical eraseblock
188 * This data structure is used in the EBA sub-system to implement per-LEB
226 * @e: PEBs used by the current fastmap
228 * @used_blocks: number of used PEBs
230 * @max_wl_pool_size: maximal size of the pool used by the WL sub-system
243 * @used: number of used PEB
254 int used; member in struct:ubi_fm_pool
606 struct rb_root used; member in struct:ubi_device
[all...]
H A Dwl.c14 * eraseblocks are of two types - used and free. Used physical eraseblocks are
26 * The wear-leveling is ensured by means of moving the contents of used
38 * "free" or "used". Free eraseblock are kept in the @wl->free RB-tree, while
39 * used eraseblocks are kept in @wl->used, @wl->erroneous, or @wl->scrub
45 * @wl->used tree. There is a protection queue in between where this
63 * used. The former state corresponds to the @wl->free tree. The latter state
65 * o the WL movement is allowed (@wl->used tree);
71 * Depending on the sub-state, wear-leveling entries of the used physical
100 * exceeded, the WL sub-system starts moving data from used physica
[all...]
/linux-master/drivers/net/caif/
H A Dcaif_virtio.c33 /* Defaults used if virtio config space is unavailable */
45 * We use this to put descriptor back on the used ring. USHRT_MAX is
46 * used to indicate invalid head-id.
55 * @rx_napi_resched: Number of calls where the full quota was used (RX)
84 * @napi: Napi context used in cfv_rx_poll()
85 * @ctx: Context data used in cfv_rx_poll()
95 * @genpool: Gen Pool used for allocating TX buffers
158 * a TX msg we just sent, and the buffer is put back to the used ring.
171 /* Get used buffer from used rin
[all...]
/linux-master/drivers/net/can/
H A Dgrcan.c384 u32 used = grcan_ring_sub(txwr, eskbp, txsize) / GRCAN_MSG_SIZE; local
386 return slots - used;
/linux-master/drivers/net/dsa/
H A Dbcm_sf2.c1427 /* CFP rule #0 cannot be used for specific classifications, flag it as
1428 * permanently used
1430 set_bit(0, priv->cfp.used);
H A Dbcm_sf2.h55 DECLARE_BITMAP(used, CFP_NUM_RULES);
H A Dbcm_sf2_cfp.c385 rule_index = find_first_zero_bit(priv->cfp.used,
470 /* Flag the rule as being used and return it */
471 set_bit(rule_index, priv->cfp.used);
672 * which is used to store its first half. That first half does not
683 rule_index[1] = find_first_zero_bit(priv->cfp.used,
690 /* Flag it as used (cleared on error path) such that we can immediately
693 set_bit(rule_index[1], priv->cfp.used);
695 rule_index[0] = find_first_zero_bit(priv->cfp.used,
830 /* Flag the second half rule as being used now, return it as the
833 set_bit(rule_index[0], priv->cfp.used);
[all...]
/linux-master/drivers/net/dsa/hirschmann/
H A Dhellcreek.c362 * VLANs are internally used by the driver to ensure port
363 * separation. Thus, they cannot be used by someone else.
1498 bool used = true; local
1509 * lan0.100 *and* lan1.100 cannot be used in parallel. However, lan0.99
1527 used = used && test_bit(vid, hellcreek->ports[i].vlan_dev_bitmap);
1530 if (used)
/linux-master/drivers/net/dsa/realtek/
H A Drealtek.h129 int rtl8366_mc_is_used(struct realtek_priv *priv, int mc_index, int *used);
H A Drtl8366-core.c16 int rtl8366_mc_is_used(struct realtek_priv *priv, int mc_index, int *used) argument
21 *used = 0;
30 *used = 1;
104 int used; local
106 ret = rtl8366_mc_is_used(priv, i, &used);
110 if (!used) {
/linux-master/drivers/net/ethernet/agere/
H A Det131x.c35 * may be used to endorse or promote products derived from this software
148 /* Some offsets in PCI config space that are actually used. */
363 /* List of TCBs that are ready to be used */
370 int used; member in struct:tx_ring
383 /* Packets since the last IRQ: used for interrupt coalescing */
839 * station address is used for generating and checking pause control
2199 * interrupt. It contains the next to be used entry in the Packet
2222 /* Indicate that we have used this PSR entry. */
2234 /* Illegal buffer or ring index cannot be used by S/W*/
2566 tx_ring->used
[all...]
/linux-master/drivers/net/ethernet/broadcom/
H A Dbcm63xx_enet.c706 /* only 3 perfect match registers left, first one is used for
850 * link changed callback (if phylib is not used)
1849 /* init rx timeout (used for oom) */
2014 if (!port->used)
2278 if (!port->used)
2394 if (!priv->used_ports[i].used)
2400 printk_once(KERN_WARNING "bcm63xx_enet: could not find a used port with phy_id %i, assuming phy is external\n",
2710 /* init rx timeout (used for oom) */
/linux-master/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.h31 /* This is used as a replacement for an MCP if it's not present */
737 s16 used; local
744 used = SUB_S16(prod, cons);
747 WARN_ON(used < 0);
748 WARN_ON(used > txdata->tx_ring_size);
749 WARN_ON((txdata->tx_ring_size - used) > MAX_TX_AVAIL);
752 return (s16)(txdata->tx_ring_size) - used;
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.h1599 /* a copy of phy_qcfg output used to report link
1736 /* Fields used for batching stats query */
2626 u32 used = READ_ONCE(txr->tx_prod) - READ_ONCE(txr->tx_cons); local
2628 return bp->tx_ring_size - (used & bp->tx_ring_mask);
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcudbg_lib.c541 u32 lo, hi, used, alloc; local
784 used = T5_USED_G(lo);
787 used = USED_G(lo);
790 meminfo_buff->port_used[i] = used;
801 used = T5_USED_G(lo);
804 used = USED_G(lo);
807 meminfo_buff->loopback_used[i] = used;
/linux-master/drivers/net/ethernet/emulex/benet/
H A Dbe.h128 atomic_t used; /* Number of valid elements in the queue */ member in struct:be_queue_info
341 /* A vlan-id of 0xFFFF must be used to clear transparent vlan-tagging */
520 u8 recovery_retries; /* used for Lancer */
521 u8 recovery_state; /* used for BEx and Skyhawk */
554 u8 __iomem *csr; /* CSR BAR used only for BE2/3 */
595 /* Work queue used to perform periodic tasks like getting statistics */
611 u32 *pmac_id; /* MAC addr handle used by BE card */
647 u8 pf_num; /* Numbering used by FW, starts at 0 */
648 u8 vf_num; /* Numbering used by FW, starts at 1 */
H A Dbe_cmds.c562 atomic_dec(&mcc_obj->q.used);
590 if (atomic_read(&mcc_obj->q.used) == 0)
850 if (atomic_read(&mccq->used) >= mccq->len)
855 atomic_inc(&mccq->used);
865 /* Must be used only in process context */
876 /* Must be used only in process context */
905 /* Must be used only in process context */
3138 /* First letter of the build version is used to identify
H A Dbe_main.c64 /* Workqueue used by all functions for defering cmd calls to the adapter */
296 * being used in uc-list
817 return atomic_read(&txo->q.used) + BE_MAX_TX_FRAG_COUNT >= txo->q.len;
822 return atomic_read(&txo->q.used) < txo->q.len / 2;
827 return atomic_read(&txo->q.used) > txo->pend_wrb_cnt;
941 atomic_add(num_frags, &txq->used);
988 * of WRBs used up by the packet.
1237 atomic_inc(&txq->used);
1432 dev_info(dev, "TXQ Dump: %d H: %d T: %d used: %d, qid: 0x%x\n",
1434 atomic_read(&txo->q.used), tx
[all...]
/linux-master/drivers/net/ethernet/freescale/enetc/
H A Denetc.h305 int used; member in struct:enetc_cls_rule
H A Denetc_ethtool.c609 if (priv->cls_rules[i].used)
622 /* array of indexes of used entries */
625 if (!priv->cls_rules[i].used)
659 priv->cls_rules[rxnfc->fs.location].used = 1;
668 priv->cls_rules[rxnfc->fs.location].used = 0;
/linux-master/drivers/net/ethernet/freescale/fman/
H A Dfman_keygen.c97 * These values are used as hard-coded values for KeyGen configuration
123 /* Default values to be used as hash key in case IPv4 or L4 (TCP, UDP)
198 bool used; /* Specifies if this scheme is used */ member in struct:keygen_scheme
208 * If hash is used and an even distribution is
411 * Find the first free scheme available to be used
423 if (!keygen->schemes[i].used) {
473 if (!scheme->used) {
523 if (enable && scheme->used) {
524 pr_err("The requested Scheme is already used\
[all...]
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3_common/
H A Dhclge_comm_cmd.c288 int used = (ntu - ntc + ring->desc_num) % ring->desc_num; local
290 return ring->desc_num - used - 1;
/linux-master/drivers/net/ethernet/i825xx/
H A Dether1.c141 int used; local
176 : "=&r" (used), "=&r" (data)
204 int used; local
239 : "=&r" (used), "=&r" (data)
/linux-master/drivers/net/ethernet/ibm/
H A Dibmvnic.c17 /* Command/Response Queues (CRQs) and sub CRQs (sCRQs). CRQs are used to */
20 /* are used by the driver to notify the server that a packet is */
22 /* packet. Subsequently, sCRQs are used by the server to notify the */
2151 * lengths and total buffer length to be used to build descriptors.
2338 if (atomic_sub_return(entries, &tx_scrq->used) <=
2557 if (atomic_add_return(num_entries, &tx_scrq->used)
3880 atomic_set(&scrq->used, 0);
4206 if (atomic_sub_return(num_entries, &scrq->used) <=

Completed in 419 milliseconds

1234567891011>>