Home
last modified time | relevance | path

Searched refs:chipnum (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/gpio/
Dgpio-max3191x.c191 unsigned int chipnum) in max3191x_chip_is_faulting() argument
194 if (!max3191x->ignore_uv && test_bit(chipnum, max3191x->fault)) in max3191x_chip_is_faulting()
200 return test_bit(chipnum, max3191x->crc_error) || in max3191x_chip_is_faulting()
201 test_bit(chipnum, max3191x->overtemp) || in max3191x_chip_is_faulting()
203 test_bit(chipnum, max3191x->undervolt1)); in max3191x_chip_is_faulting()
209 int ret, chipnum, wordlen = max3191x_wordlen(max3191x); in max3191x_get() local
217 chipnum = offset / MAX3191X_NGPIO; in max3191x_get()
218 if (max3191x_chip_is_faulting(max3191x, chipnum)) { in max3191x_get()
223 in = ((u8 *)max3191x->xfer.rx_buf)[chipnum * wordlen]; in max3191x_get()
243 unsigned int chipnum = bit / MAX3191X_NGPIO; in max3191x_get_multiple() local
[all …]
/Linux-v5.4/drivers/mtd/lpddr/
Dlpddr_cmds.c462 int chipnum = adr >> lpddr->chipshift; in do_erase_oneblock() local
463 struct flchip *chip = &lpddr->chips[chipnum]; in do_erase_oneblock()
490 int chipnum = adr >> lpddr->chipshift; in lpddr_read() local
491 struct flchip *chip = &lpddr->chips[chipnum]; in lpddr_read()
514 int chipnum = adr >> lpddr->chipshift; in lpddr_point() local
516 struct flchip *chip = &lpddr->chips[chipnum]; in lpddr_point()
523 ofs = adr - (chipnum << lpddr->chipshift); in lpddr_point()
529 if (chipnum >= lpddr->numchips) in lpddr_point()
556 chipnum++; in lpddr_point()
557 chip = &lpddr->chips[chipnum]; in lpddr_point()
[all …]
/Linux-v5.4/drivers/mtd/chips/
Dcfi_cmdset_0002.c1240 int chipnum; in cfi_amdstd_read() local
1244 chipnum = (from >> cfi->chipshift); in cfi_amdstd_read()
1245 ofs = from - (chipnum << cfi->chipshift); in cfi_amdstd_read()
1250 if (chipnum >= cfi->numchips) in cfi_amdstd_read()
1258 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_amdstd_read()
1267 chipnum++; in cfi_amdstd_read()
1348 int chipnum; in cfi_amdstd_secsi_read() local
1353 chipnum=from>>3; in cfi_amdstd_secsi_read()
1359 if (chipnum >= cfi->numchips) in cfi_amdstd_secsi_read()
1367 ret = do_read_secsi_onechip(map, &cfi->chips[chipnum], ofs, in cfi_amdstd_secsi_read()
[all …]
Dcfi_cmdset_0020.c389 int chipnum; in cfi_staa_read() local
393 chipnum = (from >> cfi->chipshift); in cfi_staa_read()
394 ofs = from - (chipnum << cfi->chipshift); in cfi_staa_read()
399 if (chipnum >= cfi->numchips) in cfi_staa_read()
407 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_staa_read()
416 chipnum++; in cfi_staa_read()
615 int chipnum; in cfi_staa_write_buffers() local
618 chipnum = to >> cfi->chipshift; in cfi_staa_write_buffers()
619 ofs = to - (chipnum << cfi->chipshift); in cfi_staa_write_buffers()
623 printk("%s: chipnum[%x] wbufsize[%x]\n", __func__, chipnum, wbufsize); in cfi_staa_write_buffers()
[all …]
Dcfi_cmdset_0001.c1385 int chipnum; in cfi_intelext_point() local
1394 chipnum = (from >> cfi->chipshift); in cfi_intelext_point()
1395 ofs = from - (chipnum << cfi->chipshift); in cfi_intelext_point()
1397 *virt = map->virt + cfi->chips[chipnum].start + ofs; in cfi_intelext_point()
1399 *phys = map->phys + cfi->chips[chipnum].start + ofs; in cfi_intelext_point()
1404 if (chipnum >= cfi->numchips) in cfi_intelext_point()
1409 last_end = cfi->chips[chipnum].start; in cfi_intelext_point()
1410 else if (cfi->chips[chipnum].start != last_end) in cfi_intelext_point()
1418 ret = do_point_onechip(map, &cfi->chips[chipnum], ofs, thislen); in cfi_intelext_point()
1427 chipnum++; in cfi_intelext_point()
[all …]
Dcfi_util.c364 int chipnum, ret = 0; in cfi_varsize_frob() local
411 chipnum = ofs >> cfi->chipshift; in cfi_varsize_frob()
412 adr = ofs - (chipnum << cfi->chipshift); in cfi_varsize_frob()
419 ret = (*frob)(map, &cfi->chips[chipnum], adr, size, thunk); in cfi_varsize_frob()
433 chipnum++; in cfi_varsize_frob()
435 if (chipnum >= cfi->numchips) in cfi_varsize_frob()
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcommon.c242 bus->chip = le32_to_cpu(revinfo.chipnum); in brcmf_c_preinit_dcmds()
Dfwil_types.h723 __le32 chipnum; member