/openbmc/linux/sound/usb/line6/ |
H A D | midibuf.c | 33 static int midibuf_is_empty(struct midi_buffer *this) in midibuf_is_empty() argument 35 return (this->pos_read == this->pos_write) && !this->full; in midibuf_is_empty() 38 static int midibuf_is_full(struct midi_buffer *this) in midibuf_is_full() argument 40 return this->full; in midibuf_is_full() 43 void line6_midibuf_reset(struct midi_buffer *this) in line6_midibuf_reset() argument 45 this->pos_read = this->pos_write = this->full = 0; in line6_midibuf_reset() 46 this->command_prev = -1; in line6_midibuf_reset() 49 int line6_midibuf_init(struct midi_buffer *this, int size, int split) in line6_midibuf_init() argument 51 this->buf = kmalloc(size, GFP_KERNEL); in line6_midibuf_init() 53 if (this->buf == NULL) in line6_midibuf_init() [all …]
|
/openbmc/linux/drivers/net/wireless/legacy/ |
H A D | wl3501_cs.c | 188 static inline void wl3501_switch_page(struct wl3501_card *this, u8 page) in wl3501_switch_page() argument 190 wl3501_outb(page, this->base_addr + WL3501_NIC_BSS); in wl3501_switch_page() 199 static int wl3501_get_flash_mac_addr(struct wl3501_card *this) in wl3501_get_flash_mac_addr() argument 201 int base_addr = this->base_addr; in wl3501_get_flash_mac_addr() 210 this->mac_addr[0] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 212 this->mac_addr[1] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 214 this->mac_addr[2] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 216 this->mac_addr[3] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 218 this->mac_addr[4] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 220 this->mac_addr[5] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() [all …]
|
/openbmc/linux/drivers/mtd/nand/onenand/ |
H A D | onenand_base.c | 224 static int onenand_block_address(struct onenand_chip *this, int block) in onenand_block_address() argument 227 if (block & this->density_mask) in onenand_block_address() 228 return ONENAND_DDP_CHIP1 | (block ^ this->density_mask); in onenand_block_address() 241 static int onenand_bufferram_address(struct onenand_chip *this, int block) in onenand_bufferram_address() argument 244 if (block & this->density_mask) in onenand_bufferram_address() 301 static unsigned flexonenand_block(struct onenand_chip *this, loff_t addr) in flexonenand_block() argument 305 if (ONENAND_IS_DDP(this) && addr >= this->diesize[0]) { in flexonenand_block() 307 addr -= this->diesize[0]; in flexonenand_block() 310 boundary = this->boundary[die]; in flexonenand_block() 312 blk = addr >> (this->erase_shift - 1); in flexonenand_block() [all …]
|
/openbmc/u-boot/drivers/mtd/onenand/ |
H A D | onenand_base.c | 152 static int onenand_block_address(struct onenand_chip *this, int block) in onenand_block_address() argument 155 if (block & this->density_mask) in onenand_block_address() 156 return ONENAND_DDP_CHIP1 | (block ^ this->density_mask); in onenand_block_address() 169 static int onenand_bufferram_address(struct onenand_chip *this, int block) in onenand_bufferram_address() argument 172 if (block & this->density_mask) in onenand_bufferram_address() 229 static unsigned int flexonenand_block(struct onenand_chip *this, loff_t addr) in flexonenand_block() argument 233 if (ONENAND_IS_DDP(this) && addr >= this->diesize[0]) { in flexonenand_block() 235 addr -= this->diesize[0]; in flexonenand_block() 238 boundary = this->boundary[die]; in flexonenand_block() 240 blk = addr >> (this->erase_shift - 1); in flexonenand_block() [all …]
|
/openbmc/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_pixpll.c | 104 struct lsdc_pixpll *this = (struct lsdc_pixpll *)data; in lsdc_pixel_pll_free() local 106 iounmap(this->mmio); in lsdc_pixel_pll_free() 108 kfree(this->priv); in lsdc_pixel_pll_free() 118 static int lsdc_pixel_pll_setup(struct lsdc_pixpll * const this) in lsdc_pixel_pll_setup() argument 122 this->mmio = ioremap(this->reg_base, this->reg_size); in lsdc_pixel_pll_setup() 123 if (!this->mmio) in lsdc_pixel_pll_setup() 128 iounmap(this->mmio); in lsdc_pixel_pll_setup() 134 this->priv = pparms; in lsdc_pixel_pll_setup() 136 return drmm_add_action_or_reset(this->ddev, lsdc_pixel_pll_free, this); in lsdc_pixel_pll_setup() 149 static int lsdc_pixpll_find(struct lsdc_pixpll * const this, in lsdc_pixpll_find() argument [all …]
|
H A D | lsdc_gfxpll.c | 59 static void __gfxpll_rreg(struct loongson_gfxpll *this, in __gfxpll_rreg() argument 63 reg->d = readq(this->mmio); in __gfxpll_rreg() 65 reg->w[0] = readl(this->mmio); in __gfxpll_rreg() 66 reg->w[1] = readl(this->mmio + 4); in __gfxpll_rreg() 72 static int loongson_gfxpll_update(struct loongson_gfxpll * const this, in loongson_gfxpll_update() argument 80 static void loongson_gfxpll_get_rates(struct loongson_gfxpll * const this, in loongson_gfxpll_get_rates() argument 85 struct loongson_gfxpll_parms *pparms = &this->parms; in loongson_gfxpll_get_rates() 92 __gfxpll_rreg(this, &gfxpll_reg); in loongson_gfxpll_get_rates() 117 static void loongson_gfxpll_print(struct loongson_gfxpll * const this, in loongson_gfxpll_print() argument 121 struct loongson_gfxpll_parms *parms = &this->parms; in loongson_gfxpll_print() [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/gpmi-nand/ |
H A D | gpmi-nand.c | 119 static int __gpmi_enable_clk(struct gpmi_nand_data *this, bool v) in __gpmi_enable_clk() argument 126 clk = this->resources.clock[i]; in __gpmi_enable_clk() 142 clk_disable_unprepare(this->resources.clock[i - 1]); in __gpmi_enable_clk() 146 static int gpmi_init(struct gpmi_nand_data *this) in gpmi_init() argument 148 struct resources *r = &this->resources; in gpmi_init() 151 ret = pm_runtime_resume_and_get(this->dev); in gpmi_init() 163 ret = gpmi_reset_block(r->bch_regs, GPMI_IS_MXS(this)); in gpmi_init() 189 pm_runtime_mark_last_busy(this->dev); in gpmi_init() 190 pm_runtime_put_autosuspend(this->dev); in gpmi_init() 195 static void gpmi_dump_info(struct gpmi_nand_data *this) in gpmi_dump_info() argument [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | nand_bbt.c | 166 static int read_bbt(struct nand_chip *this, uint8_t *buf, int page, int num, in read_bbt() argument 169 struct mtd_info *mtd = nand_to_mtd(this); in read_bbt() 180 from = ((loff_t)page) << this->page_shift; in read_bbt() 183 len = min(totlen, (size_t)(1 << this->bbt_erase_shift)); in read_bbt() 219 this->bbt_erase_shift); in read_bbt() 220 bbt_mark_entry(this, offs + act, in read_bbt() 231 this->bbt_erase_shift); in read_bbt() 234 bbt_mark_entry(this, offs + act, in read_bbt() 237 bbt_mark_entry(this, offs + act, in read_bbt() 259 static int read_abs_bbt(struct nand_chip *this, uint8_t *buf, in read_abs_bbt() argument [all …]
|
/openbmc/linux/drivers/s390/net/ |
H A D | fsm.c | 21 fsm_instance *this; in init_fsm() local 25 this = kzalloc(sizeof(fsm_instance), order); in init_fsm() 26 if (this == NULL) { in init_fsm() 31 strscpy(this->name, name, sizeof(this->name)); in init_fsm() 32 init_waitqueue_head(&this->wait_q); in init_fsm() 38 kfree_fsm(this); in init_fsm() 45 this->f = f; in init_fsm() 51 kfree_fsm(this); in init_fsm() 63 kfree_fsm(this); in init_fsm() 69 return this; in init_fsm() [all …]
|
/openbmc/linux/fs/jffs2/ |
H A D | nodelist.c | 24 struct jffs2_node_frag *this); 102 struct jffs2_node_frag *this) in jffs2_obsolete_node_frag() argument 104 if (this->node) { in jffs2_obsolete_node_frag() 105 this->node->frags--; in jffs2_obsolete_node_frag() 106 if (!this->node->frags) { in jffs2_obsolete_node_frag() 109 ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size); in jffs2_obsolete_node_frag() 110 jffs2_mark_node_obsolete(c, this->node->raw); in jffs2_obsolete_node_frag() 111 jffs2_free_full_dnode(this->node); in jffs2_obsolete_node_frag() 114 …ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size, this->node->frags); in jffs2_obsolete_node_frag() 115 mark_ref_normal(this->node->raw); in jffs2_obsolete_node_frag() [all …]
|
H A D | compr.c | 34 static int jffs2_is_best_compression(struct jffs2_compressor *this, in jffs2_is_best_compression() argument 43 if ((this->compr == JFFS2_COMPR_LZO) && (bestsize > size)) in jffs2_is_best_compression() 47 if ((this->compr == JFFS2_COMPR_LZO) && (bestsize > (size * FAVOUR_LZO_PERCENT / 100))) in jffs2_is_best_compression() 77 struct jffs2_compressor *this; in jffs2_selected_compress() local 90 list_for_each_entry(this, &jffs2_compressor_list, list) { in jffs2_selected_compress() 92 if (!this->compress || this->disabled) in jffs2_selected_compress() 96 if (compr && (compr != this->compr)) in jffs2_selected_compress() 103 this->usecount++; in jffs2_selected_compress() 108 err = this->compress(data_in, output_buf, datalen, cdatalen); in jffs2_selected_compress() 111 this->usecount--; in jffs2_selected_compress() [all …]
|
/openbmc/linux/include/linux/mtd/ |
H A D | onenand.h | 153 #define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index) argument 154 #define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1) argument 155 #define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1) argument 156 #define ONENAND_SET_PREV_BUFFERRAM(this) (this->bufferram_index ^= 1) argument 157 #define ONENAND_SET_BUFFERRAM0(this) (this->bufferram_index = 0) argument 158 #define ONENAND_SET_BUFFERRAM1(this) (this->bufferram_index = 1) argument 160 #define FLEXONENAND(this) \ argument 161 (this->device_id & DEVICE_IS_FLEXONENAND) 162 #define ONENAND_GET_SYS_CFG1(this) \ argument 163 (this->read_word(this->base + ONENAND_REG_SYS_CFG1)) [all …]
|
/openbmc/webui-vue/src/components/Global/ |
H A D | LoadingBar.vue | 27 this.$root.$on('loader-start', () => { 28 this.startLoadingInterval(); 30 this.$root.$on('loader-end', () => { 31 this.endLoadingInterval(); 33 this.$root.$on('loader-hide', () => { 34 this.hideLoadingBar(); 39 this.clearLoadingInterval(); 40 this.clearTimeout(); 41 this.loadingIndicatorValue = 0; 42 this.isLoadingComplete = false; [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | mm.c | 50 struct nvkm_mm_node *this = *pthis; in nvkm_mm_free() local 52 if (this) { in nvkm_mm_free() 53 struct nvkm_mm_node *prev = node(this, prev); in nvkm_mm_free() 54 struct nvkm_mm_node *next = node(this, next); in nvkm_mm_free() 57 prev->length += this->length; in nvkm_mm_free() 58 list_del(&this->nl_entry); in nvkm_mm_free() 59 kfree(this); this = prev; in nvkm_mm_free() 63 next->offset = this->offset; in nvkm_mm_free() 64 next->length += this->length; in nvkm_mm_free() 65 if (this->type == NVKM_MM_TYPE_NONE) in nvkm_mm_free() [all …]
|
/openbmc/webui-vue/src/views/Settings/Network/ |
H A D | Network.vue | 88 this.hideLoader(); 107 this.getModalInfo(); 111 this.startLoader(); 113 this.$root.$on('network-global-settings-complete', () => resolve()); 116 this.$root.$on('network-interface-settings-complete', () => resolve()); 119 this.$root.$on('network-table-dns-complete', () => resolve()); 122 this.$root.$on('network-table-ipv4-complete', () => resolve()); 125 this.$root.$on('network-table-ipv6-complete', () => resolve()); 130 this.$store.dispatch('network/getEthernetData'), 136 ]).finally(() => this.endLoader()); [all …]
|
/openbmc/linux/Documentation/driver-api/media/drivers/ccs/ |
H A D | mk-ccs-regs | 59 my %this; 201 my $this = $_[0]; 202 my $size = $this->{elsize}; 203 my $h = $this->{argparams}; 205 foreach my $arg (@{$this->{args}}) { 215 my ($this, $postfix, $is_same_reg) = @_; 217 ($this->{args}, $this->{argparams}, $this->{name}); 220 my @sorted_args = @{$this->{sorted_args}}; 222 my $size = arr_size($this); 246 ", \"$name" . (defined $this->{discontig} ? " $lim_arg" : "") . "\" },\n" [all …]
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | nand_bbt.c | 173 struct nand_chip *this = mtd_to_nand(mtd); in read_bbt() local 183 from = ((loff_t)page) << this->page_shift; in read_bbt() 186 len = min(totlen, (size_t)(1 << this->bbt_erase_shift)); in read_bbt() 222 this->bbt_erase_shift); in read_bbt() 223 bbt_mark_entry(this, offs + act, in read_bbt() 234 this->bbt_erase_shift); in read_bbt() 237 bbt_mark_entry(this, offs + act, in read_bbt() 240 bbt_mark_entry(this, offs + act, in read_bbt() 264 struct nand_chip *this = mtd_to_nand(mtd); in read_abs_bbt() local 269 for (i = 0; i < this->numchips; i++) { in read_abs_bbt() [all …]
|
H A D | nand_spl_simple.c | 28 struct nand_chip *this = mtd_to_nand(mtd); in nand_command() local 31 while (!this->dev_ready(mtd)) in nand_command() 35 this->cmd_ctrl(mtd, cmd, NAND_CTRL_CLE | NAND_CTRL_CHANGE); in nand_command() 38 this->cmd_ctrl(mtd, offs, NAND_CTRL_ALE | NAND_CTRL_CHANGE); in nand_command() 39 this->cmd_ctrl(mtd, page_addr & 0xff, NAND_CTRL_ALE); /* A[16:9] */ in nand_command() 40 this->cmd_ctrl(mtd, (page_addr >> 8) & 0xff, in nand_command() 44 this->cmd_ctrl(mtd, (page_addr >> 16) & 0x0f, in nand_command() 48 this->cmd_ctrl(mtd, NAND_CMD_NONE, NAND_NCE | NAND_CTRL_CHANGE); in nand_command() 53 while (!this->dev_ready(mtd)) in nand_command() 65 struct nand_chip *this = mtd_to_nand(mtd); in nand_command() local [all …]
|
/openbmc/linux/net/caif/ |
H A D | cffrml.c | 37 struct cffrml *this = kzalloc(sizeof(struct cffrml), GFP_ATOMIC); in cffrml_create() local 38 if (!this) in cffrml_create() 40 this->pcpu_refcnt = alloc_percpu(int); in cffrml_create() 41 if (this->pcpu_refcnt == NULL) { in cffrml_create() 42 kfree(this); in cffrml_create() 48 this->layer.receive = cffrml_receive; in cffrml_create() 49 this->layer.transmit = cffrml_transmit; in cffrml_create() 50 this->layer.ctrlcmd = cffrml_ctrlcmd; in cffrml_create() 51 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "frm%d", phyid); in cffrml_create() 52 this->dofcs = use_fcs; in cffrml_create() [all …]
|
/openbmc/linux/drivers/accessibility/speakup/ |
H A D | utils.h | 73 struct st_key *this = hash_name(name); in find_key() local 75 while (this) { in find_key() 76 if (this->name && !strcmp(name, this->name)) in find_key() 77 return this; in find_key() 78 this = this->next; in find_key() 80 return this; in find_key() 85 struct st_key *this = hash_name(name); in add_key() local 89 if (this->name != NULL) { in add_key() 90 while (this->next) { in add_key() 91 if (!strcmp(name, this->name)) in add_key() [all …]
|
/openbmc/webui-vue/src/views/SecurityAndAccess/UserManagement/ |
H A D | UserManagement.vue | 156 this.hideLoader(); 208 return this.$store.getters['userManagement/allUsers']; 212 return this.allUsers.map((user) => { 224 enabled: this.editEnable(user), 230 user.UserName === this.$store.getters['global/username'] 243 return this.$store.getters['userManagement/accountSettings']; 246 return this.$store.getters['userManagement/accountPasswordRequirements']; 250 this.startLoader(); 251 this.$store.dispatch('userManagement/getUsers').finally(() => { 252 this.endLoader(); [all …]
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | onenand.h | 131 #define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index) argument 132 #define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1) argument 133 #define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1) argument 134 #define ONENAND_SET_PREV_BUFFERRAM(this) (this->bufferram_index ^= 1) argument 135 #define ONENAND_SET_BUFFERRAM0(this) (this->bufferram_index = 0) argument 136 #define ONENAND_SET_BUFFERRAM1(this) (this->bufferram_index = 1) argument 138 #define FLEXONENAND(this) (this->device_id & DEVICE_IS_FLEXONENAND) argument 139 #define ONENAND_IS_MLC(this) (this->technology & ONENAND_TECHNOLOGY_IS_MLC) argument 140 #define ONENAND_IS_DDP(this) \ argument 141 (this->device_id & ONENAND_DEVICE_IS_DDP) [all …]
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_net.c | 56 static efi_status_t EFIAPI efi_net_start(struct efi_simple_network *this) in efi_net_start() argument 60 EFI_ENTRY("%p", this); in efi_net_start() 63 if (!this) { in efi_net_start() 68 if (this->mode->state != EFI_NETWORK_STOPPED) in efi_net_start() 71 this->mode->state = EFI_NETWORK_STARTED; in efi_net_start() 86 static efi_status_t EFIAPI efi_net_stop(struct efi_simple_network *this) in efi_net_stop() argument 90 EFI_ENTRY("%p", this); in efi_net_stop() 93 if (!this) { in efi_net_stop() 98 if (this->mode->state == EFI_NETWORK_STOPPED) in efi_net_stop() 101 this->mode->state = EFI_NETWORK_STOPPED; in efi_net_stop() [all …]
|
/openbmc/webui-vue/src/views/Operations/Kvm/ |
H A D | KvmConsole.vue | 70 terminalClass: this.isFullWindow ? 'full-window' : '', 71 marginClass: this.isFullWindow ? 'margin-left-full-window' : '', 79 if (this.status === Connected) { 81 } else if (this.status === Disconnected) { 87 if (this.status === Connected) { 89 } else if (this.status === Disconnected) { 96 this.$store.dispatch('global/getSystemInfo'); 99 this.openTerminal(); 102 window.removeEventListener('resize', this.resizeKvmWindow); 103 this.closeTerminal(); [all …]
|
/openbmc/webui-vue/src/views/Settings/DateTime/ |
H A D | DateTime.vue | 229 this.hideLoader(); 240 locale: this.$store.getters['global/languagePreference'], 258 return this.form.configurationSelected === 'manual'; 264 return this.form.configurationSelected === 'manual'; 272 return this.form.configurationSelected === 'ntp'; 282 return this.$store.getters['global/bmcTime']; 285 return this.form.configurationSelected === 'ntp'; 288 return this.form.configurationSelected === 'manual'; 291 return this.$store.getters['global/isUtcDisplay']; 294 if (this.isUtcDisplay) { [all …]
|