/openbmc/linux/samples/bpf/ |
H A D | test_overhead_user.c | 30 static int cnt; variable 151 links[cnt] = bpf_program__attach(prog); in load_progs() 152 err = libbpf_get_error(links[cnt]); in load_progs() 155 links[cnt] = NULL; in load_progs() 158 cnt++; in load_progs() 166 while (cnt) in unload_progs() 167 bpf_link__destroy(links[--cnt]); in unload_progs()
|
/openbmc/linux/drivers/infiniband/hw/irdma/ |
H A D | hmc.c | 23 u32 idx, u32 cnt, u32 *sd_idx, in irdma_find_sd_index_limit() argument 50 u32 idx, u32 cnt, u32 *pd_idx, in irdma_find_pd_index_limit() argument 128 sdinfo.cnt = 1; in irdma_hmc_sd_one() 166 &sdinfo.entry[sdinfo.cnt]); in irdma_hmc_sd_grp() 169 &sdinfo.entry[sdinfo.cnt]); in irdma_hmc_sd_grp() 171 sdinfo.cnt++; in irdma_hmc_sd_grp() 172 if (sdinfo.cnt == IRDMA_MAX_SD_ENTRIES) { in irdma_hmc_sd_grp() 181 sdinfo.cnt = 0; in irdma_hmc_sd_grp() 184 if (sdinfo.cnt) in irdma_hmc_sd_grp() 202 info->hmc_info->hmc_obj[info->rsrc_type].cnt) in irdma_hmc_finish_add_sd_reg() [all …]
|
/openbmc/linux/drivers/staging/rts5208/ |
H A D | general.c | 16 int i, cnt = 0; in bit1cnt_long() local 20 cnt++; in bit1cnt_long() 23 return cnt; in bit1cnt_long()
|
/openbmc/linux/block/ |
H A D | blk-cgroup-rwstat.c | 61 rwstat->cnt[i]); in __blkg_prfill_rwstat() 63 v = rwstat->cnt[BLKG_RWSTAT_READ] + in __blkg_prfill_rwstat() 64 rwstat->cnt[BLKG_RWSTAT_WRITE] + in __blkg_prfill_rwstat() 65 rwstat->cnt[BLKG_RWSTAT_DISCARD]; in __blkg_prfill_rwstat() 126 sum->cnt[i] += blkg_rwstat_read_counter(rwstat, i); in blkg_rwstat_recursive_sum()
|
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | M0205.h | 9 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz); 11 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, 19 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 21 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0205E *);
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | mcp77.c | 52 .head = { .cnt = nv50_head_cnt, .new = nv50_head_new }, 53 .dac = { .cnt = nv50_dac_cnt, .new = nv50_dac_new }, 54 .sor = { .cnt = g94_sor_cnt, .new = mcp77_sor_new }, 55 .pior = { .cnt = nv50_pior_cnt, .new = nv50_pior_new },
|
H A D | gt200.c | 89 .head = { .cnt = nv50_head_cnt, .new = nv50_head_new }, 90 .dac = { .cnt = nv50_dac_cnt, .new = nv50_dac_new }, 91 .sor = { .cnt = nv50_sor_cnt, .new = g84_sor_new }, 92 .pior = { .cnt = nv50_pior_cnt, .new = nv50_pior_new },
|
/openbmc/linux/fs/hfsplus/ |
H A D | bfind.c | 231 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto() argument 241 if (cnt < 0) { in hfs_brec_goto() 242 cnt = -cnt; in hfs_brec_goto() 243 while (cnt > fd->record) { in hfs_brec_goto() 244 cnt -= fd->record + 1; in hfs_brec_goto() 259 fd->record -= cnt; in hfs_brec_goto() 261 while (cnt >= bnode->num_recs - fd->record) { in hfs_brec_goto() 262 cnt -= bnode->num_recs - fd->record; in hfs_brec_goto() 277 fd->record += cnt; in hfs_brec_goto()
|
/openbmc/linux/drivers/net/wan/ |
H A D | n2.c | 287 int cnt; in n2_destroy_card() local 289 for (cnt = 0; cnt < 2; cnt++) in n2_destroy_card() 290 if (card->ports[cnt].card) { in n2_destroy_card() 291 struct net_device *dev = port_to_dev(&card->ports[cnt]); in n2_destroy_card() 325 u8 cnt, pcr; in n2_run() local 434 for (cnt = 0; cnt < 2; cnt++) { in n2_run() 435 port_t *port = &card->ports[cnt]; in n2_run() 439 if ((cnt == 0 && !valid0) || (cnt == 1 && !valid1)) in n2_run() 442 port->phy_node = cnt; in n2_run() 445 if ((cnt == 1) && valid0) in n2_run()
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_sysfs.c | 55 int cnt, enable; in extts_enable_store() local 59 if (cnt != 2) in extts_enable_store() 82 int cnt = 0; in extts_fifo_show() local 105 return cnt; in extts_fifo_show() 116 int cnt, enable, err = -EINVAL; in period_store() local 121 if (cnt != 5) in period_store() 144 int cnt, enable; in pps_enable_store() local 150 cnt = sscanf(buf, "%d", &enable); in pps_enable_store() 151 if (cnt != 1) in pps_enable_store() 416 int cnt, err, index; in ptp_pin_store() local [all …]
|
H A D | ptp_private.h | 85 int cnt = READ_ONCE(q->tail) - READ_ONCE(q->head); in queue_cnt() local 86 return cnt < 0 ? PTP_MAX_TIMESTAMPS + cnt : cnt; in queue_cnt() 130 uint flags, char __user *buf, size_t cnt);
|
/openbmc/linux/drivers/memstick/core/ |
H A D | mspro_block.c | 255 ssize_t cnt, rc = 0; in mspro_block_attr_show_default() local 257 for (cnt = 0; cnt < s_attr->size; cnt++) { in mspro_block_attr_show_default() 258 if (cnt && !(cnt % 16)) { in mspro_block_attr_show_default() 668 int cnt; in mspro_block_complete_req() local 684 for (cnt = 0; cnt < msb->current_seg; cnt++) { in mspro_block_complete_req() 960 for (cnt = 0; cnt < attr_count; ++cnt) { in mspro_block_read_attributes() 971 "size %zx\n", cnt, attr->entries[cnt].id, addr, in mspro_block_read_attributes() 1191 int cnt; in mspro_block_data_clear() local 1195 for (cnt = 0; msb->attr_group.attrs[cnt]; ++cnt) { in mspro_block_data_clear() 1318 for (cnt = 0; new_msb->attr_group.attrs[cnt] in mspro_block_resume() [all …]
|
/openbmc/linux/fs/ubifs/ |
H A D | tnc_commit.c | 340 if (cnt < 0) in get_leb_cnt() 341 cnt = 0; in get_leb_cnt() 343 return DIV_ROUND_UP(cnt, d); in get_leb_cnt() 391 cnt -= written; in layout_in_gaps() 573 err = layout_in_gaps(c, cnt); in layout_commit() 645 int cnt = 0; in get_znodes_to_commit() local 653 cnt += 1; in get_znodes_to_commit() 667 cnt += 1; in get_znodes_to_commit() 671 return cnt; in get_znodes_to_commit() 760 int err = 0, cnt; in ubifs_tnc_start_commit() local [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | dw_mmc.c | 2308 cnt = min_t(int, cnt, host->part_buf_count); in dw_mci_pull_part_bytes() 2309 if (cnt) { in dw_mci_pull_part_bytes() 2362 for (; cnt >= 2; cnt -= 2) in dw_mci_push_data16() 2367 if (cnt) { in dw_mci_push_data16() 2399 for (; cnt >= 2; cnt -= 2) in dw_mci_pull_data16() 2403 if (cnt) { in dw_mci_pull_data16() 2445 for (; cnt >= 4; cnt -= 4) in dw_mci_push_data32() 2450 if (cnt) { in dw_mci_push_data32() 2482 for (; cnt >= 4; cnt -= 4) in dw_mci_pull_data32() 2529 for (; cnt >= 8; cnt -= 8) in dw_mci_push_data64() [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | mxc_spi.c | 222 u32 data, cnt, i; in spi_xchg_single() local 249 cnt = (bitlen % 32) / 8; in spi_xchg_single() 258 nbytes -= cnt; in spi_xchg_single() 302 cnt = nbytes % 32; in spi_xchg_single() 306 cnt = (bitlen % 32) / 8; in spi_xchg_single() 310 memcpy(din, &data, cnt); in spi_xchg_single() 311 din += cnt; in spi_xchg_single() 313 nbytes -= cnt; in spi_xchg_single() 323 memcpy(din, &data, cnt); in spi_xchg_single() 324 din += cnt; in spi_xchg_single() [all …]
|
/openbmc/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-video-v4l.c | 29 unsigned int cnt; member 44 .cnt = ARRAY_SIZE(routing_scheme0), 56 .cnt = ARRAY_SIZE(routing_scheme1), 78 (hdw->input_val >= sp->cnt)) { in pvr2_saa7115_subdev_update()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | iters_testmod_seq.c | 13 extern int bpf_iter_testmod_seq_new(struct bpf_iter_testmod_seq *it, s64 value, int cnt) __ksym; 66 int cnt = zero; in testmod_seq_truncated() local 70 cnt++; in testmod_seq_truncated() 71 if (cnt >= 1000000) in testmod_seq_truncated()
|
/openbmc/linux/include/linux/ |
H A D | eventfd.h | 41 __u64 *cnt); 42 void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt); 78 wait_queue_entry_t *wait, __u64 *cnt) in eventfd_ctx_remove_wait_queue() argument 88 static inline void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt) in eventfd_ctx_do_read() argument
|
/openbmc/linux/Documentation/bpf/ |
H A D | redirect.rst | 45 sudo bpftrace -e 'tracepoint:xdp:* { @cnt[probe] = count(); }' 49 @cnt[tracepoint:xdp:mem_connect]: 18 50 @cnt[tracepoint:xdp:mem_disconnect]: 18 51 @cnt[tracepoint:xdp:xdp_exception]: 19605 52 @cnt[tracepoint:xdp:xdp_devmap_xmit]: 1393604 53 @cnt[tracepoint:xdp:xdp_redirect]: 22292200
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_iocb.c | 333 uint16_t cnt; in qla2x00_start_scsi() local 383 req->cnt = cnt - req->ring_index; in qla2x00_start_scsi() 1608 req->cnt = cnt - req->ring_index; in qla24xx_start_scsi() 1814 req->cnt = cnt - req->ring_index; in qla24xx_dif_start_scsi() 1975 req->cnt = cnt - req->ring_index; in qla2xxx_start_scsi_mq() 2197 req->cnt = cnt - req->ring_index; in qla2xxx_dif_start_scsi_mq() 2324 req->cnt = cnt - req->ring_index; in __qla2x00_alloc_iocbs() 3481 req->cnt = cnt - req->ring_index; in qla82xx_start_scsi() 3584 req->cnt = cnt - req->ring_index; in qla82xx_start_scsi() 4188 req->cnt = cnt - req->ring_index; in qla2x00_start_bidir() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | dcb.c | 28 dcb_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in dcb_table() argument 50 *cnt = nvbios_rd08(bios, dcb + 2); in dcb_table() 59 *cnt = (i2c - dcb) / 8; in dcb_table() 68 *cnt = (i2c - dcb) / 10; in dcb_table() 101 u8 hdr, cnt; in dcb_outp() local 102 u16 dcb = dcb_table(bios, ver, &hdr, &cnt, len); in dcb_outp() 103 if (dcb && idx < cnt) in dcb_outp()
|
/openbmc/linux/drivers/media/pci/smipcie/ |
H A D | smipcie-ir.c | 46 int cnt; in smi_raw_process() local 48 for (cnt = 0; cnt < length; cnt++) { in smi_raw_process() 49 if (buffer[cnt] & 0x7f) { in smi_raw_process() 50 rawir.pulse = (buffer[cnt] & 0x80) == 0; in smi_raw_process() 51 rawir.duration = ((buffer[cnt] & 0x7f) + in smi_raw_process()
|
/openbmc/u-boot/drivers/mtd/ |
H A D | pic32_flash.c | 222 int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt) in write_buff() argument 224 ulong dst, tmp_le, len = cnt; in write_buff() 238 for (; (i < 4) && (cnt > 0); ++i, ++src, --cnt, ++cp) in write_buff() 241 for (; (cnt == 0) && (i < 4); ++i, ++cp) in write_buff() 252 while (cnt >= 4) { in write_buff() 259 cnt -= 4; in write_buff() 262 if (cnt == 0) { in write_buff() 269 for (i = 0, cp = (uchar *)dst; (i < 4) && (cnt > 0); ++i, ++cp) { in write_buff() 271 --cnt; in write_buff()
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_parser.c | 98 int cnt; in dp_parser_link_frequencies() local 104 cnt = of_property_count_u64_elems(endpoint, "link-frequencies"); in dp_parser_link_frequencies() 106 if (cnt > 0) in dp_parser_link_frequencies() 108 cnt - 1, &frequency); in dp_parser_link_frequencies() 121 int cnt; in dp_parser_misc() local 126 cnt = drm_of_get_data_lanes_count_ep(of_node, 1, 0, 1, DP_MAX_NUM_DP_LANES); in dp_parser_misc() 127 if (cnt < 0) { in dp_parser_misc() 129 cnt = drm_of_get_data_lanes_count(of_node, 1, DP_MAX_NUM_DP_LANES); in dp_parser_misc() 132 if (cnt > 0) in dp_parser_misc() 133 parser->max_dp_lanes = cnt; in dp_parser_misc()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tc_conntrack.c | 55 efx_tc_flower_release_counter(efx, conn->cnt); in efx_tc_ct_free() 286 struct efx_tc_counter *cnt; in efx_tc_ct_replace() local 342 if (IS_ERR(cnt)) { in efx_tc_ct_replace() 343 rc = PTR_ERR(cnt); in efx_tc_ct_replace() 346 conn->cnt = cnt; in efx_tc_ct_replace() 359 if (conn->cnt) in efx_tc_ct_replace() 394 efx_tc_flower_release_counter(efx, conn->cnt); in efx_tc_ct_remove_finish() 426 struct efx_tc_counter *cnt; in efx_tc_ct_stats() local 438 cnt = conn->cnt; in efx_tc_ct_stats() 439 spin_lock_bh(&cnt->lock); in efx_tc_ct_stats() [all …]
|