/linux/tools/net/ynl/ |
H A D | ynl-gen-c.py | 131 ri.cw.p(f'free({var}->{ref}{self.c_name});') 144 ri.cw.p(f"unsigned int n_{self.c_name};") 150 ri.cw.p(f"{member} {ptr}{self.c_name};") 154 ri.cw.p(one + ';') 159 def attr_policy(self, cw): argument 163 cw.p(f"\t[{self.enum_name}] = {spec},") 168 def attr_typol(self, cw): argument 170 cw.p(f'[{self.enum_name}] = {"{"} .name = "{self.name}", {typol}{"}"},') 174 ri.cw.p(f"if ({var}->_present.{self.c_name})") 176 ri.cw.p(f"if ({var}->_present.{self.c_name}_len)") [all …]
|
/linux/tools/perf/util/ |
H A D | data-convert-bt.c | 144 static __maybe_unused int value_set_##_name(struct ctf_writer *cw, \ 149 struct bt_ctf_field_type *type = cw->data._name; \ 163 value_set_string(struct ctf_writer *cw, struct bt_ctf_event *event, in value_set_string() argument 166 struct bt_ctf_field_type *type = cw->data.string; in value_set_string() 192 get_tracepoint_field_type(struct ctf_writer *cw, struct tep_format_field *field) in get_tracepoint_field_type() argument 197 return cw->data.string; in get_tracepoint_field_type() 202 return cw->data.u64_hex; in get_tracepoint_field_type() 207 return cw->data.s64; in get_tracepoint_field_type() 209 return cw->data.s32; in get_tracepoint_field_type() 213 return cw->data.u64; in get_tracepoint_field_type() [all …]
|
/linux/net/netfilter/ipvs/ |
H A D | ip_vs_wrr.c | 62 int cw; /* current weight */ member 120 mark->cw = mark->mw; in ip_vs_wrr_init_svc() 147 if (mark->cw > mark->mw || !mark->cw) in ip_vs_wrr_dest_changed() 148 mark->cw = mark->mw; in ip_vs_wrr_dest_changed() 150 mark->cw = (mark->cw / mark->di) * mark->di + 1; in ip_vs_wrr_dest_changed() 181 atomic_read(&dest->weight) >= mark->cw) in ip_vs_wrr_schedule() 186 mark->cw -= mark->di; in ip_vs_wrr_schedule() 187 if (mark->cw <= 0) { in ip_vs_wrr_schedule() 188 mark->cw = mark->mw; in ip_vs_wrr_schedule() 200 last_pass = mark->cw <= mark->di; in ip_vs_wrr_schedule()
|
/linux/drivers/md/ |
H A D | dm-zoned-target.c | 395 static void dmz_handle_bio(struct dmz_target *dmz, struct dm_chunk_work *cw, in dmz_handle_bio() argument 457 static inline void dmz_get_chunk_work(struct dm_chunk_work *cw) in dmz_get_chunk_work() argument 459 refcount_inc(&cw->refcount); in dmz_get_chunk_work() 466 static void dmz_put_chunk_work(struct dm_chunk_work *cw) in dmz_put_chunk_work() argument 468 if (refcount_dec_and_test(&cw->refcount)) { in dmz_put_chunk_work() 469 WARN_ON(!bio_list_empty(&cw->bio_list)); in dmz_put_chunk_work() 470 radix_tree_delete(&cw->target->chunk_rxtree, cw->chunk); in dmz_put_chunk_work() 471 kfree(cw); in dmz_put_chunk_work() 480 struct dm_chunk_work *cw = container_of(work, struct dm_chunk_work, work); in dmz_chunk_work() local 481 struct dmz_target *dmz = cw->target; in dmz_chunk_work() [all …]
|
/linux/drivers/pps/clients/ |
H A D | pps_parport.c | 42 unsigned int cw; /* port clear timeout */ member 64 if (dev->cw == 0) in parport_irq() 89 for (i = dev->cw; i; i--) in parport_irq() 103 dev->cw = 0; in parport_irq() 177 device->cw = clear_wait; in parport_attach()
|
/linux/drivers/staging/media/av7110/ |
H A D | av7110_ca.c | 303 (descr->cw[0] << 8) | descr->cw[1], in dvb_ca_ioctl() 304 (descr->cw[2] << 8) | descr->cw[3], in dvb_ca_ioctl() 305 (descr->cw[4] << 8) | descr->cw[5], in dvb_ca_ioctl() 306 (descr->cw[6] << 8) | descr->cw[7]); in dvb_ca_ioctl()
|
/linux/drivers/mtd/nand/raw/ |
H A D | qcom_nandc.c | 765 static bool qcom_nandc_is_last_cw(struct nand_ecc_ctrl *ecc, int cw) in qcom_nandc_is_last_cw() argument 767 return cw == (ecc->steps - 1); in qcom_nandc_is_last_cw() 771 static void nandc_set_read_loc(struct nand_chip *chip, int cw, int reg, in nandc_set_read_loc() argument 778 if (nandc->props->qpic_v2 && qcom_nandc_is_last_cw(ecc, cw)) in nandc_set_read_loc() 783 if (nandc->props->qpic_v2 && qcom_nandc_is_last_cw(ecc, cw)) in nandc_set_read_loc() 811 static void update_rw_regs(struct qcom_nand_host *host, int num_cw, bool read, int cw) in update_rw_regs() argument 851 nandc_set_read_loc(chip, cw, 0, 0, host->use_ecc ? in update_rw_regs() 1237 config_nand_cw_read(struct nand_chip *chip, bool use_ecc, int cw) in config_nand_cw_read() argument 1244 if (nandc->props->qpic_v2 && qcom_nandc_is_last_cw(ecc, cw)) in config_nand_cw_read() 1268 bool use_ecc, int cw) in config_nand_single_cw_page_read() argument [all …]
|
/linux/fs/ceph/ |
H A D | debugfs.c | 273 struct cap_wait *cw; in caps_show() local 306 list_for_each_entry(cw, &mdsc->cap_wait_list, list) { in caps_show() 307 seq_printf(s, "%-13d0x%-17llx%-17s%-17s\n", cw->tgid, cw->ino, in caps_show() 308 ceph_cap_string(cw->need), in caps_show() 309 ceph_cap_string(cw->want)); in caps_show()
|
/linux/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_verbs.c | 1889 hdr->cw |= (OCRDMA_FLAG_AH_VLAN_PR << OCRDMA_WQE_FLAGS_SHIFT); in ocrdma_build_ud_hdr() 1946 hdr->cw |= (OCRDMA_TYPE_INLINE << OCRDMA_WQE_TYPE_SHIFT); in ocrdma_build_inline_sges() 1953 hdr->cw |= (OCRDMA_TYPE_LKEY << OCRDMA_WQE_TYPE_SHIFT); in ocrdma_build_inline_sges() 1955 hdr->cw |= ((wqe_size / OCRDMA_WQE_STRIDE) << OCRDMA_WQE_SIZE_SHIFT); in ocrdma_build_inline_sges() 2003 hdr->cw |= ((wqe_size / OCRDMA_WQE_STRIDE) << OCRDMA_WQE_SIZE_SHIFT); in ocrdma_build_read() 2004 hdr->cw |= (OCRDMA_READ << OCRDMA_WQE_OPCODE_SHIFT); in ocrdma_build_read() 2005 hdr->cw |= (OCRDMA_TYPE_LKEY << OCRDMA_WQE_TYPE_SHIFT); in ocrdma_build_read() 2037 hdr->cw |= (OCRDMA_FR_MR << OCRDMA_WQE_OPCODE_SHIFT); in ocrdma_build_reg() 2038 hdr->cw |= ((wqe_size / OCRDMA_WQE_STRIDE) << OCRDMA_WQE_SIZE_SHIFT); in ocrdma_build_reg() 2116 hdr->cw = 0; in ocrdma_post_send() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | testmode.c | 203 u16 cw = 0; in mt7915_tm_set_ipg_params() local 219 cw++; in mt7915_tm_set_ipg_params() 221 if (cw > 16) in mt7915_tm_set_ipg_params() 222 cw = 16; in mt7915_tm_set_ipg_params() 224 ipg -= ((1 << cw) - 1) * slot_time; in mt7915_tm_set_ipg_params() 251 aifsn, cw, cw, 0); in mt7915_tm_set_ipg_params()
|
/linux/drivers/media/usb/gspca/ |
H A D | w996Xcf.c | 397 int start_cropx, start_cropy, x, y, fw, fh, cw, ch, in w9968cf_set_crop_window() local 435 cw = (fw >= fh) ? max_width : SC(sd->gspca_dev.pixfmt.width) / fh; in w9968cf_set_crop_window() 441 x = (max_width - cw) / 2; in w9968cf_set_crop_window() 446 reg_w(sd, 0x12, start_cropx + x + cw); in w9968cf_set_crop_window()
|
/linux/include/uapi/linux/dvb/ |
H A D | ca.h | 117 unsigned char cw[8]; member
|
/linux/net/mac80211/ |
H A D | rc80211_minstrel_ht.c | 1387 unsigned int cw = mp->cw_min; in minstrel_calc_retransmit() local 1407 ctime = (t_slot * cw) >> 1; in minstrel_calc_retransmit() 1408 cw = min((cw << 1) | 1, mp->cw_max); in minstrel_calc_retransmit() 1409 ctime += (t_slot * cw) >> 1; in minstrel_calc_retransmit() 1410 cw = min((cw << 1) | 1, mp->cw_max); in minstrel_calc_retransmit() 1427 ctime = (t_slot * cw) >> 1; in minstrel_calc_retransmit() 1428 cw = min((cw << 1) | 1, mp->cw_max); in minstrel_calc_retransmit()
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | mac.c | 199 u32 cw; in ath9k_hw_set_txq_props() local 221 cw = min(qinfo->tqi_cwmin, 1024U); in ath9k_hw_set_txq_props() 223 while (qi->tqi_cwmin < cw) in ath9k_hw_set_txq_props() 228 cw = min(qinfo->tqi_cwmax, 1024U); in ath9k_hw_set_txq_props() 230 while (qi->tqi_cwmax < cw) in ath9k_hw_set_txq_props()
|
/linux/drivers/ata/ |
H A D | sata_mv.c | 2003 __le16 *cw; in mv_qc_prep() local 2039 cw = &pp->crqb[in_index].ata_cmd[0]; in mv_qc_prep() 2054 mv_crqb_pack_cmd(cw++, tf->hob_nsect, ATA_REG_NSECT, 0); in mv_qc_prep() 2058 mv_crqb_pack_cmd(cw++, tf->hob_feature, ATA_REG_FEATURE, 0); in mv_qc_prep() 2059 mv_crqb_pack_cmd(cw++, tf->feature, ATA_REG_FEATURE, 0); in mv_qc_prep() 2071 mv_crqb_pack_cmd(cw++, tf->nsect, ATA_REG_NSECT, 0); in mv_qc_prep() 2072 mv_crqb_pack_cmd(cw++, tf->hob_lbal, ATA_REG_LBAL, 0); in mv_qc_prep() 2073 mv_crqb_pack_cmd(cw++, tf->lbal, ATA_REG_LBAL, 0); in mv_qc_prep() 2074 mv_crqb_pack_cmd(cw++, tf->hob_lbam, ATA_REG_LBAM, 0); in mv_qc_prep() 2075 mv_crqb_pack_cmd(cw++, tf->lbam, ATA_REG_LBAM, 0); in mv_qc_prep() [all …]
|
/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
H A D | rtl8180.h | 54 u8 cw; member
|
/linux/drivers/infiniband/hw/mlx4/ |
H A D | mcg.c | 1131 struct clean_work *cw = container_of(work, struct clean_work, work); in mcg_clean_task() local 1133 _mlx4_ib_mcg_port_cleanup(cw->ctx, cw->destroy_wq); in mcg_clean_task() 1134 cw->ctx->flushing = 0; in mcg_clean_task() 1135 kfree(cw); in mcg_clean_task()
|
/linux/drivers/net/can/ctucanfd/ |
H A D | Kconfig | 34 https://cw.fel.cvut.cz/wiki/courses/b35apo/documentation/mz_apo/start .
|
/linux/kernel/time/ |
H A D | posix-cpu-timers.c | 1129 struct posix_cputimers_work *cw = container_of(work, typeof(*cw), work); in fastpath_timer_check() 1131 mutex_lock(&cw->mutex); in fastpath_timer_check() 1133 mutex_unlock(&cw->mutex); in fastpath_timer_check() 1166 struct posix_cputimers_work *cw = container_of(work, typeof(*cw), work); posix_cpu_timers_work() local
|
/linux/net/ceph/crush/ |
H A D | mapper.c | 903 struct crush_work *cw = cwin; in crush_do_rule() local 1034 cw, in crush_do_rule() 1056 cw, in crush_do_rule()
|
/linux/arch/x86/include/uapi/asm/ |
H A D | sigcontext.h | 109 __u32 cw; member
|
/linux/drivers/video/fbdev/core/ |
H A D | fbcon_ccw.c | 194 unsigned int cw = vc->vc_font.width; in ccw_clear_margins() local 196 unsigned int rw = info->var.yres - (vc->vc_cols*cw); in ccw_clear_margins()
|
H A D | bitblit.c | 208 unsigned int cw = vc->vc_font.width; in bit_clear_margins() local 210 unsigned int rw = info->var.xres - (vc->vc_cols*cw); in bit_clear_margins()
|
H A D | fbcon_cw.c | 177 unsigned int cw = vc->vc_font.width; in cw_clear_margins() local 179 unsigned int rw = info->var.yres - (vc->vc_cols*cw); in cw_clear_margins()
|
H A D | fbcon_ud.c | 225 unsigned int cw = vc->vc_font.width; in ud_clear_margins() local 227 unsigned int rw = info->var.xres - (vc->vc_cols*cw); in ud_clear_margins()
|