Home
last modified time | relevance | path

Searched refs:cnts (Results 1 – 14 of 14) sorted by relevance

/drivers/infiniband/hw/mlx5/
Dcounters.c144 return is_mdev_switchdev_mode(dev->mdev) ? &dev->port[0].cnts : in get_counters()
145 &dev->port[port_num].cnts; in get_counters()
159 const struct mlx5_ib_counters *cnts = get_counters(dev, port_num); in mlx5_ib_get_counters_id() local
161 return cnts->set_id; in mlx5_ib_get_counters_id()
168 const struct mlx5_ib_counters *cnts = &dev->port[0].cnts; in mlx5_ib_alloc_hw_device_stats() local
170 return rdma_alloc_hw_stats_struct(cnts->names, in mlx5_ib_alloc_hw_device_stats()
171 cnts->num_q_counters + in mlx5_ib_alloc_hw_device_stats()
172 cnts->num_cong_counters + in mlx5_ib_alloc_hw_device_stats()
173 cnts->num_ext_ppcnt_counters, in mlx5_ib_alloc_hw_device_stats()
181 const struct mlx5_ib_counters *cnts = &dev->port[port_num - 1].cnts; in mlx5_ib_alloc_hw_port_stats() local
[all …]
Dmlx5_ib.h831 struct mlx5_ib_counters cnts; member
/drivers/staging/r8188eu/core/
Drtw_efuse.c422 u8 rtw_efuse_access(struct adapter *padapter, u8 write, u16 start_addr, u16 cnts, u8 *data) in rtw_efuse_access() argument
436 if ((start_addr + cnts) > max_available_size) in rtw_efuse_access()
446 for (i = 0; i < cnts; i++) { in rtw_efuse_access()
478 u8 rtw_efuse_map_read(struct adapter *padapter, u16 addr, u16 cnts, u8 *data) in rtw_efuse_map_read() argument
484 if ((addr + cnts) > mapLen) in rtw_efuse_map_read()
489 efuse_ReadEFuse(padapter, EFUSE_WIFI, addr, cnts, data, false); in rtw_efuse_map_read()
496 u8 rtw_BT_efuse_map_read(struct adapter *padapter, u16 addr, u16 cnts, u8 *data) in rtw_BT_efuse_map_read() argument
502 if ((addr + cnts) > mapLen) in rtw_BT_efuse_map_read()
507 efuse_ReadEFuse(padapter, EFUSE_BT, addr, cnts, data, false); in rtw_BT_efuse_map_read()
514 u8 rtw_efuse_map_write(struct adapter *padapter, u16 addr, u16 cnts, u8 *data) in rtw_efuse_map_write() argument
[all …]
Drtw_mp_ioctl.c901 u16 addr = 0, cnts = 0, max_available_size = 0; in rtl8188eu_oid_rt_pro_read_efuse_hdl() local
913 cnts = pefuse->cnts; in rtl8188eu_oid_rt_pro_read_efuse_hdl()
918 if ((addr + cnts) > max_available_size) in rtl8188eu_oid_rt_pro_read_efuse_hdl()
922 if (rtw_efuse_access(Adapter, false, addr, cnts, data) == _FAIL) in rtl8188eu_oid_rt_pro_read_efuse_hdl()
935 u16 addr = 0, cnts = 0, max_available_size = 0; in rtl8188eu_oid_rt_pro_write_efuse_hdl() local
944 cnts = pefuse->cnts; in rtl8188eu_oid_rt_pro_write_efuse_hdl()
949 if ((addr + cnts) > max_available_size) in rtl8188eu_oid_rt_pro_write_efuse_hdl()
953 if (rtw_efuse_access(Adapter, true, addr, cnts, data) == _FAIL) in rtl8188eu_oid_rt_pro_write_efuse_hdl()
/drivers/counter/
Dinterrupt-cnt.c25 struct counter_count cnts; member
194 priv->cnts.name = "Channel 0 Count"; in interrupt_cnt_probe()
195 priv->cnts.functions_list = interrupt_cnt_functions; in interrupt_cnt_probe()
196 priv->cnts.num_functions = ARRAY_SIZE(interrupt_cnt_functions); in interrupt_cnt_probe()
197 priv->cnts.synapses = &priv->synapses; in interrupt_cnt_probe()
198 priv->cnts.num_synapses = 1; in interrupt_cnt_probe()
199 priv->cnts.ext = interrupt_cnt_ext; in interrupt_cnt_probe()
200 priv->cnts.num_ext = ARRAY_SIZE(interrupt_cnt_ext); in interrupt_cnt_probe()
206 priv->counter.counts = &priv->cnts; in interrupt_cnt_probe()
/drivers/staging/rtl8712/
Drtl8712_efuse.c425 u16 cnts, u8 *data) in r8712_efuse_access() argument
432 if (!bRead && ((start_addr + cnts) > in r8712_efuse_access()
438 for (i = 0; i < cnts; i++) { in r8712_efuse_access()
453 u8 r8712_efuse_map_read(struct _adapter *adapter, u16 addr, u16 cnts, u8 *data) in r8712_efuse_map_read() argument
459 if ((addr + cnts) > EFUSE_MAP_MAX_SIZE) in r8712_efuse_map_read()
462 for (i = 0; i < cnts; i++) in r8712_efuse_map_read()
474 if (idx == cnts) in r8712_efuse_map_read()
485 u8 r8712_efuse_map_write(struct _adapter *adapter, u16 addr, u16 cnts, in r8712_efuse_map_write() argument
492 if ((addr + cnts) > EFUSE_MAP_MAX_SIZE) in r8712_efuse_map_write()
526 if ((cnts - idx) == 1) { in r8712_efuse_map_write()
[all …]
Drtl871x_mp_ioctl.c669 u16 addr = 0, cnts = 0; in oid_rt_pro_read_efuse_hdl() local
678 cnts = pefuse->cnts; in oid_rt_pro_read_efuse_hdl()
680 memset(data, 0xFF, cnts); in oid_rt_pro_read_efuse_hdl()
681 if ((addr > 511) || (cnts < 1) || (cnts > 512) || (addr + cnts) > in oid_rt_pro_read_efuse_hdl()
684 if (!r8712_efuse_access(Adapter, true, addr, cnts, data)) in oid_rt_pro_read_efuse_hdl()
700 u16 addr = 0, cnts = 0; in oid_rt_pro_write_efuse_hdl() local
707 cnts = pefuse->cnts; in oid_rt_pro_write_efuse_hdl()
710 if ((addr > 511) || (cnts < 1) || (cnts > 512) || in oid_rt_pro_write_efuse_hdl()
711 (addr + cnts) > r8712_efuse_get_max_size(Adapter)) in oid_rt_pro_write_efuse_hdl()
713 if (!r8712_efuse_access(Adapter, false, addr, cnts, data)) in oid_rt_pro_write_efuse_hdl()
Drtl8712_efuse.h38 u16 start_addr, u16 cnts, u8 *data);
40 u16 cnts, u8 *data);
42 u16 cnts, u8 *data);
Drtl871x_mp_ioctl.h50 u16 cnts; member
/drivers/staging/r8188eu/include/
Drtw_efuse.h107 u16 cnts, u8 *data);
108 u8 rtw_efuse_map_read(struct adapter *adapter, u16 addr, u16 cnts, u8 *data);
109 u8 rtw_efuse_map_write(struct adapter *adapter, u16 addr, u16 cnts, u8 *data);
111 u16 cnts, u8 *data);
113 u16 cnts, u8 *data);
Drtw_mp_ioctl.h28 u16 cnts; member
/drivers/staging/r8188eu/os_dep/
Dioctl_linux.c4473 u16 i = 0, j = 0, mapLen = 0, addr = 0, cnts = 0; in rtw_mp_efuse_get() local
4563 cnts = simple_strtoul(tmp[2], &ptmp, 10); in rtw_mp_efuse_get()
4564 if (cnts == 0) { in rtw_mp_efuse_get()
4569 DBG_88E("%s: cnts =%d\n", __func__, cnts); in rtw_mp_efuse_get()
4572 if ((addr + cnts) > max_available_size) { in rtw_mp_efuse_get()
4573 DBG_88E("%s: addr(0x%X)+cnts(%d) parameter error!\n", __func__, addr, cnts); in rtw_mp_efuse_get()
4578 if (rtw_efuse_map_read(padapter, addr, cnts, data) == _FAIL) { in rtw_mp_efuse_get()
4585 for (i = 0; i < cnts; i++) in rtw_mp_efuse_get()
4608 cnts = 6; in rtw_mp_efuse_get()
4611 if ((addr + cnts) > max_available_size) { in rtw_mp_efuse_get()
[all …]
/drivers/bus/
Dmoxtet.c335 int cnts[TURRIS_MOX_MODULE_LAST]; in moxtet_find_topology() local
338 memset(cnts, 0, sizeof(cnts)); in moxtet_find_topology()
371 if (moxtet_set_irq(moxtet, i-1, id, cnts[id]++) < 0) in moxtet_find_topology()
/drivers/net/dsa/
Dvitesse-vsc73xx-core.c903 const struct vsc73xx_counter *cnts; in vsc73xx_find_counter() local
908 cnts = vsc73xx_tx_counters; in vsc73xx_find_counter()
911 cnts = vsc73xx_rx_counters; in vsc73xx_find_counter()
918 cnt = &cnts[i]; in vsc73xx_find_counter()